-->
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.  [ 1 post ] 
Author Message
 Post subject: Second Level Cache issue
PostPosted: Thu Sep 14, 2006 1:06 am 
Newbie

Joined: Thu Sep 14, 2006 12:54 am
Posts: 1
Hi All,

I have an ehcache second level configured, but I have the following issue.

If I load objects from the database using a Query or Criteria the second level cache works just fine.

But, if I insert a record and than query (in the same session) for this record anytimes, every time the cache hit is missed and a new query to the database is performed.

The strange thing is that from the log I can see that the object was inserted into the cache, and the UpdateTimestampsCache marks the newly created object as Pre-invalidated (checking the source code, I guess because of the native generator).

I guess for the first hit is makes sense as the data was nealy created. But the next queries it should work.

Have you guys already faced anything like this?

_________________
[]'s
Nadilson


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

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.