-->
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 algorithm
PostPosted: Wed Jun 15, 2005 3:16 am 
Newbie

Joined: Fri Jun 10, 2005 10:27 am
Posts: 6
Bonjour,

J'aurais peut-etre plus de chance dans cette section francaise... :-)

http://forum.hibernate.org/viewtopic.php?t=943636&start=0&postdays=0&postorder=asc&highlight=query

Merci.
Ced.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 15, 2005 4:32 am 
Regular
Regular

Joined: Tue May 03, 2005 8:19 am
Posts: 53
Location: Paris
Quote:
But if my criteria search returns 100 results, then hibernate will execute 100 queries to populate each entity relationship... why not using a single query with a "IN" subquery which contains the IDs from the query search?

La solution doit être dans le fetching mode, mais je n'ai pas encore effectué beaucoup de test des différents paramétrages.

Dynamic association fetching doc v3
Fetching strategies doc v3

javadoc :
Criteria.setFetchMode 2.1
Criteria.setFetchMode 3.0


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 16, 2005 2:56 am 
Newbie

Joined: Fri Jun 10, 2005 10:27 am
Posts: 6
merci.

On dirait que j'ai besoin d'un FetchMode a "subselect" pour ma collection retourne du criteria search, mais ca c'est implemente pour Hibernate 3.

Ced.


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.