-->
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: UpdateTimestampsCache.isUpToDate() performance question
PostPosted: Wed Oct 13, 2004 2:03 pm 
Newbie

Joined: Wed May 12, 2004 10:24 am
Posts: 11
Good afternoon...
Our (read-heavy) web application uses a tangosol coherence distributed cache for clustering. Hibernate side utilizes the query cache. In performance testing I have noticed a significant (40%) performance hit when moving the query timestamp cache from a distributed to a local cache. I believe this is due to the fact that when there have been no updates, the timestamp cache lookup looks first in the near cache and then goes on to the distributed cache. This is a small but noticable hit that gets magnified many times over in the course of one http request.

I note that in UpdateTimestampsCache, this section is commented out (lines 61-66):
Code:
if ( lastUpdate==null ) {
            //the last update timestamp was lost from the cache
            //(or there were no updates since startup!)
            //updateTimestamps.put( space, new Long( updateTimestamps.nextTimestamp() ) );
            //result = false; // safer
         }


Wondering what the reason to not insert the query timestamp if it is null? I believe our application will reclaim these performance differences if it only needs to look in the near cache rather than to the distributed cache.

btw we are using hibernate 2.1.6- it seems that this specific class remains the same through current though.

Thanks for any help.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 13, 2004 3:44 pm 
Newbie

Joined: Wed May 12, 2004 10:24 am
Posts: 11
FYI...

I rebuilt hibernate-2.1.6, uncommenting that code section and the application did perform with a distributed cache at an equivalent level to the local-only cache.

Anyone on the hibernate team aware of a problem that led to the removal of that?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 13, 2004 3:45 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Please post this issue to JIRA.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


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.