codefox
05-06-2005, 10:37 PM
I am working on a website that uses javascript extensively. The homepage is rendered using javascript files which are altered for content changes. This in a way is good since using a database would increase the number of hits to the db. But it makes it difficult when it comes to versioning. I am planning to rewrite the pages to use a database for storing content. But I am in a dilemma whether that would be as efficient as the current design since once the javascript files are brought to the user's computer they wont be retrieved again unless the content changes. Alternatively, if I use a db, everytime the user refreshes the page there would be a database hit.
I would like to have suggestions from website builders on which design is better.
- One that uses database for content
- On that uses javascript files for content (like the current one)
- A combination of both, i.e content is stored in db, but a CMS will read content from db and store them in js files every time there is a content change.
I would like to know if there is any cachine mechanism if I use a db that would reduce the no. of hits to the db everytime the user refershes/accesses the pages if there is no change to the content.
Thanks!
I would like to have suggestions from website builders on which design is better.
- One that uses database for content
- On that uses javascript files for content (like the current one)
- A combination of both, i.e content is stored in db, but a CMS will read content from db and store them in js files every time there is a content change.
I would like to know if there is any cachine mechanism if I use a db that would reduce the no. of hits to the db everytime the user refershes/accesses the pages if there is no change to the content.
Thanks!