-->
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: replicate performance - seems to ignore batch-size
PostPosted: Wed Oct 19, 2005 2:52 am 
Newbie

Joined: Sun May 22, 2005 6:09 am
Posts: 10
Subject says most - I found that when I do replicate(), hibernate is executing single queries against the database:
select ID from TABLE where ID = $1

this is the exact query. This wouldn't be a problem except there is like 30k of these queries to perform. I have batch-size turned on at both class and bag/set levels, and nada.

Am I seeing a bug?

Thanks,
-ryan


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 19, 2005 3:05 am 
Pro
Pro

Joined: Mon Jan 24, 2005 5:39 am
Posts: 216
Location: Germany
Isnt batch size just involved in insert and update ?
Just wondering.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 19, 2005 1:50 pm 
Newbie

Joined: Sun May 22, 2005 6:09 am
Posts: 10
steckemetz wrote:
Isnt batch size just involved in insert and update ?
Just wondering.


the documentation states that batch-size is used when doing selects - this is most often used when you are doing either child-gets or doing lots of loads that can be lazy loaded. Hibernate can then batch up all the selects.

It seems hibernate is testing to see which children already exist - which is good, but the problem for me is that there are like 45,000 children. So that makes for 45,000 queries - the database IPC overhead is killing me :-)


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.