-->
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.  [ 4 posts ] 
Author Message
 Post subject: Cache invalidation messages
PostPosted: Mon Apr 19, 2004 3:56 pm 
Newbie

Joined: Wed Mar 03, 2004 4:01 pm
Posts: 2
Location: San Francisco
We are developing a Hibernate (version 2.1.2) solution using swarmcahe clustered cache. When we use HQL to query the database we noticed that unchanged objects that already exist in the secondary cache result in a multicast of invalidation messages for these particular objects. This behavoir causes an undesired network traffic. I am not sure if this is a configuration problem or just a side effect of the caching mechanism.
In debugging through the code we discovered that hibernate tries to put the retrieved records in the secondary cache and that causes the invalidation to be sent to all servers in the cluster.

Thank you for a great product.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 19, 2004 4:03 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
This can be configured by setting hibernate.cache.use_minimal_puts = true


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 19, 2004 4:05 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
See here: http://opensource.atlassian.com/projects/hibernate/browse/HB-641


Top
 Profile  
 
 Post subject: Cache invalidation messages
PostPosted: Mon Apr 19, 2004 6:10 pm 
Newbie

Joined: Wed Mar 03, 2004 4:01 pm
Posts: 2
Location: San Francisco
Works like a charm. Thank you guys.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.