-->
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.  [ 1 post ] 
Author Message
 Post subject: jdbc_batch_size, jdbc_fetch_size, Batch Fetching
PostPosted: Tue Mar 29, 2005 6:09 am 
Beginner
Beginner

Joined: Thu Dec 04, 2003 3:47 am
Posts: 31
Location: Hong Kong
Hibernate version: 2.1.7c

<set name="Singlet_DHCPPool_M12na" lazy="true" inverse="true" cascade="all-delete-orphan" batch-size="6">
<key>
<column name="neEir" />
</key>
<one-to-many class="org.astri.ims.mne.m12na.singlet.dataobject.Singlet_DHCPPool_M12na" />
</set>
<set name="Singlet_NATTcp_M12na" lazy="true" inverse="true" cascade="all-delete-orphan" batch-size="6">
<key>
<column name="neEir" />
</key>
<one-to-many class="org.astri.ims.mne.m12na.singlet.dataobject.Singlet_NATTcp_M12na" />
</set>
<set name="Singlet_NATUdp_M12na" lazy="true" inverse="true" cascade="all-delete-orphan" batch-size="6">
<key>
<column name="neEir" />
</key>
<one-to-many class="org.astri.ims.mne.m12na.singlet.dataobject.Singlet_NATUdp_M12na" />
</set>
<set name="Singlet_ApRadio_M12na" lazy="true" inverse="true" cascade="all-delete-orphan" batch-size="6">
<key>
<column name="neEir" />
</key>
<one-to-many class="org.astri.ims.mne.m12na.singlet.dataobject.Singlet_ApRadio_M12na" />
</set>




MySQL 4.0.12

There are some configurable parameters for hibernate. I would like to get more understanding how they are related and how to tune the best value
jdbc_batch_size
its recommended value is 5-30. when it is 0, it means disable the jdbc batch.
fetch_batch_size
by default, it is disable
In the document , i can specify batch fetching (and its size) in the class definition or set definiton of the collection. so how is it related to the fetch_batch_size? is it the fetch_batch_size the global setting of all collection ? (for both immediate and lazy initialization) or it means other things?

any hints I can tune these parameters (for batch fetching in collection, i think setting it to the no. of objects in the collection that it would usually be retrieved with the parent object is a good choice, just dunno how it's related to fetch_batch_size and jdbc_batch_size


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.