-->
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: Query Cache invalidation on insert/delete?
PostPosted: Sun Mar 21, 2004 4:12 am 
Beginner
Beginner

Joined: Wed Nov 19, 2003 10:29 pm
Posts: 27
Are cached queries supposed to be invalidated when hibernate inserts or deletes a persistent object? If not, it sure makes the query cache less transparent than it could be. I suppose I can think of instances when it'd be preferable to keep a stale query around for performance reasons rather than return stale data, but in my mind, those are exceptions rather than the rule.

If I open an issue on this, should I mark it as a bug or a feature request?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 21, 2004 8:20 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Quote:
Are cached queries supposed to be invalidated when hibernate inserts or deletes a persistent object?


yes.


Quote:
If I open an issue on this, should I mark it as a bug or a feature request?


Please do not open an issue, since this functionality is working just fine.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 21, 2004 5:32 pm 
Beginner
Beginner

Joined: Wed Nov 19, 2003 10:29 pm
Posts: 27
This was definitely not working properly in 2.1.1. I didn't see anything in the change-log, so I didn't bother trying to upgrade. I've just upgraded to 2.1.2 and the problem has resolved itself.


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.