-->
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: Optimize hibernate collections
PostPosted: Thu May 13, 2004 2:20 pm 
Newbie

Joined: Wed Sep 17, 2003 5:15 am
Posts: 9
I have an Entity, which have list of others entities (childs)

i'm using lazy=true for list mapping. All fine, but when i added new child to list, whole collection loaded by hibernate.

It's perfomance problem now, because the ammount of data is rather large.

If i use inverse=true for list, hibernate doesn't load collection and generate only one SQL INSERT , but there are no Index for this element.

Actually i don't need indexed collection, i want lazy collection, where i can add element (at the end of collection only) with one SQL INSERT.

I wonder can i achive this with Hibernate?


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 14, 2004 4:17 am 
Expert
Expert

Joined: Fri Feb 06, 2004 7:49 am
Posts: 255
Location: Moscow, Russia
I have no solution for you, but maybe the following liks help you:

Inside explanation of inverse=true http://www.hibernate.org/155.html
14.1. Understanding Collection performance http://www.hibernate.org/hib_docs/reference/en/html/performance.html#performance-collections


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.