I have three select lists that are being populated when a page is loaded, but the load time is a little slow. I was wondering, would it be quicker to build the lists by calling SQL each time the page is loaded, or store the results in an Array or Vector and build the lists from that? I understand server-side scripting vs. client-side. I am also trying to avoid creating views or load tables that are updated nightly. The tables are pretty big (millions of records potentially). Thanks in advance.
DWFENNEL
0
Newbie Poster
Recommended Answers
Jump to Postif they're updated infrequently, it's best to cache the results for a period known to be shorter than that update interval.
Analyse how long you can live with the old information after new information becomes available.
That will tell you the longest period you should cache the data.And …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.