-->
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: Empty lazy collection initialization optimalization
PostPosted: Tue Aug 02, 2005 6:06 pm 
Beginner
Beginner

Joined: Sun Sep 19, 2004 5:02 pm
Posts: 28
Location: Poland
During initialization of empty lazy collection, sql query is invoked.

How can I optimize this to not query those collections.

Is it possible to do some kind of mapping that keeps information about emptieness of collection in collection owner table and doesnt ask queries when collection is empty?

_________________
Lmichasz


Top
 Profile  
 
 Post subject: Re: Empty lazy collection initialization optimalization
PostPosted: Tue Aug 02, 2005 8:31 pm 
Expert
Expert

Joined: Mon Feb 14, 2005 12:32 pm
Posts: 609
Location: Atlanta, GA - USA
Lmichasz wrote:
During initialization of empty lazy collection, sql query is invoked.

How can I optimize this to not query those collections.

Is it possible to do some kind of mapping that keeps information about emptieness of collection in collection owner table and doesnt ask queries when collection is empty?


No.

_________________
Preston

Please don't forget to give credit if/when you get helpful information.


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.