php - Is it bad practice to store ordered list html tag inside mysql database -
i have been researching quite time , have found no exact answer question. asking strictly ordered list element
<ul><li></li></ul>
tag elements stored in mysql db, , if bad practice, way perform ?
example of data stored in mysql db:
"get latest products here price starts $$$ specs: <ul> <li>specs</li> <li>specs</li> <li>specs</li> </ul>"
all kinds of enlightenment welcomed. thx
whether it's bad form or not isn't question. it's whether or not efficient, , whether or not price of coding efficiency worth gain.
without knowing rest of application there 4 ways handle off top of head.
- the way handling, cost sql query every time want piece of html.
- caching in memory using memcache, depending on how many fragments may run out of memory.
- caching hard disk file, need regenerate file when tree changes.
- regenerate html every time it's needed. may faster smaller elements.
Comments
Post a Comment