-->
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.  [ 2 posts ] 
Author Message
 Post subject: fetch=join or fetch=select
PostPosted: Sun Nov 23, 2008 4:35 pm 
Beginner
Beginner

Joined: Tue Aug 26, 2008 4:24 pm
Posts: 29
I have been reading about the using of fetch to get the dependencies of an entity .So its said if you use fetch=join to get these dependencies it will be use jut one sql and if you use fetch=select it will be used n+1 selects. So its better always to use fetch=join, isnt it?
Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 23, 2008 5:48 pm 
Newbie

Joined: Tue Mar 11, 2008 4:49 am
Posts: 12
Use join has many problems but the most important is if you use join fetch mode you could retrieve a whole db with single query! And because of big time to execute query and available memory of your computer i am sure it is not what you would like to get.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.