1. what cache implementation are you using? 2. where is the "startup" code located? 3. are you caching entities, queries or both?
"on first time loading I am unable to implement 2nd level cache and the performance lag is obvious to see." could you clarify. cache, by definition, will expire periodically. Therefore there will be times when the database is queried. On Mar 9, 4:43 am, Harold Wanyama <[email protected]> wrote: > Hi guys, I have so far been able to use 2nd level cache and it works fine > albeit with one problem. When the application starts, and I query a list of > obects from the database, on first time loading I'am unable to implement 2nd > level cache and the performance lag is obvious to see. But on 2nd time > loading and onwards 2nd level cache is used and the speed is much faster. > How can I solve this problem? I can rephrase by saying If I create a > persistent object , how can I cache it ?? -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
