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
Post a Comment