c# - Get info from SQL Server each time or remember it in the program? -


one of app features information database (1 string), , string changes every 24 hours.

the app doing check , read database string every 1 minute or every user name, there 100 user names.

the question better read information sql server every 1 minute user or store in in value inside app? , check again in 24 hours etc?

thanks.

best thing use caching built .net in system.runtime.caching namepace. can put values database cache object, , give expiry of 24 hours or exact timeframes should expire.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -