Hibernate Books

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: JDBC batch processing
PostPosted: Mon Aug 23, 2004 3:12 pm 
Regular
Regular

Joined: Thu Jul 01, 2004 12:13 am
Posts: 68
Location: San Diego, CA
Christian,

In your book, you explain that using JDBC batch processing is a nice thing to do for performance, but when I read the FAQ, is says to disable this feature if you're using optimistic locking. It seems that if I'm using the <version> attribute I should be okay and I could use batch. Can you help clarify this for me?

Thanks,
Lou


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 23, 2004 7:02 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Can you point us to the FAQ entry? This is no longer valid.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 23, 2004 7:08 pm 
Regular
Regular

Joined: Thu Jul 01, 2004 12:13 am
Posts: 68
Location: San Diego, CA
christian wrote:
Can you point us to the FAQ entry? This is no longer valid.


Sure, I found that here: http://hibernate.org/117.html#A21

I actually was following this thread with interest: http://forum.hibernate.org/viewtopic.php?t=929931

Since I'm playing in the Oracle world though, it looks like I would need to create a batcher specific to Oracle. It's nice that you still batch INSERTs though. My exposure to a performance hit might not be too bad anyway, since I'm only doing a few DB calls in a particular transaction.

Thanks again,
Lou


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 23, 2004 9:51 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
I updated the FAQ entry. It really depends on your JDBC driver working correctly. My suggestion for Oracle is to use the DataDirect drivers, they seem to work pretty well and don't have all the quirks of the Oracle drivers. I wish Oracle would just buy them and stop torturing everyone with their Java incompetency...

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


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