Hi, I have a question about using hibernate. I'm using Hibernate 3.1. I have queries on my web site that shows the most viewed videos, for example. Despite the fact I'm using query caching, since number of views change all the time, those caches will get invalidated almost instantly. I'm wondering if there are any way for me to just use staled data once in a while. I don't really care if the view numbers are completely up-to-date on every query, as long as it gets right eventually. Is there a mode of hibernate to ignore some of the changed data in a query for a period of time and just used the cached result?
|