-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: QueryCache timeout / expiration
PostPosted: Tue Jan 31, 2006 5:28 pm 
Contributor
Contributor

Joined: Thu Jun 23, 2005 1:08 pm
Posts: 32
Location: Baltimore, MD
I found all the info I need to set the expiration of cached objects, but not for cached query results (the list of IDs).

I have 2 applications accessing the same data, so I need the query caches to expire (slightly stale data is ok).

Can anyone point me in the direction of some documentation I missed?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 06, 2006 2:54 pm 
Contributor
Contributor

Joined: Thu Jun 23, 2005 1:08 pm
Posts: 32
Location: Baltimore, MD
OK. configuring a region named "NHibenate.Cache.StandardQueryCache" works as long as you don't make a new IQueryCache implementation.

New problem: The query results only expire after a period of inactivity, not a period since they were last queried form the database. My results are no less out of data just because people are viewing them.

I'll need to modify syscache to have the option of an absolute exiration a set time after the qurey results are added into the cache.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 06, 2006 3:06 pm 
Contributor
Contributor

Joined: Thu Jun 23, 2005 1:08 pm
Posts: 32
Location: Baltimore, MD
OK, it looks like this is already being taken care of.

http://forum.hibernate.org/viewtopic.php?t=951958
http://jira.nhibernate.org/browse/NH-457

I'll run a copy of SysCache from CVS.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.