-->
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: Reducing the number of selects from lucene query?
PostPosted: Wed Apr 11, 2007 1:01 pm 
Newbie

Joined: Wed Mar 28, 2007 2:51 pm
Posts: 16
Hi,
I am retrieving hibernate objects from a lucene query (using hibernate search). The query returns 5 objects, but the hibernate sql statements are dozens and dozens of selects. I thought the lucene search would retrieve the ID's and then select only for the number of lucene hits retrieved.

Why do I have so many selects querying this way?

thank you for insights.

Darren


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 11, 2007 1:05 pm 
Expert
Expert

Joined: Tue Jul 11, 2006 10:21 am
Posts: 457
Location: Columbus, Ohio
You might get a bit better response from the Hibernate Annotations, EntityManager, Search, Validator, Shards forum. This forum gets pretty active with new posts, and it stands a better chance of not falling through the cracks if you use the aforementioned forum. Happy coding!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 16, 2007 5:21 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
yes, better move the question to the appropriate forum. But to give a hiint, your objects probably do have non lazy associations

_________________
Emmanuel


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.