Hi Jason, 1.Iam using Syscache implementation on a windows based application. 2.The startup code is created in its own library (Utilities) (thats where I created my NHibernateHelper sealed class . 3.Iam caching both entities and queries.
Maybe my question is a bit misleading. My understanding of a cache is data storage in memory. My problem is how can I cancel the delay of querying the database teh first time my application starts up as the query hasn't yet been cached? Thanks On Tue, Mar 9, 2010 at 4:38 PM, Jason Meckley <[email protected]>wrote: > 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]<nhusers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > > -- 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.
