Hi i have a question on this which is the following:

What is the advantage if the product information is retrieve from a database at run time?

Need this answer urgently thanks =)

Thanks

Recommended Answers

All 2 Replies

If you get the database information at runtime of a page, then it is as uptodate as can be. If you get the database information at the beginning of a session or application, it could become out of date due to changes. However, having the data cached does mean that pages will load quicker (most noticably on large data collections)

So your trade off is load time vs. accurate information.

Hello ,

If you can store product information in cache it would be much faster and simpler..because company doesnt change product every day.

See more of cacheing techniques from sites.

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.