-->
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: Checking if an object is the cache
PostPosted: Thu Apr 01, 2004 12:06 pm 
Beginner
Beginner

Joined: Sat Mar 13, 2004 4:00 pm
Posts: 32
Hello,

We would like to optimize our database query's by only querying for objects that aren't in the cache. So given a list of primary keys, we only want to execute a query on the objects that don't exist in the cache. This way we know that we can execute Session.get() knowing that we will not generate any SQL. It's just an optimization we would like to do to limit the SQL that the server sends on each request.

If there is a better to do this, I would be interested in knowing that as well.

Thanks in advance,

Rich C


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.