-->
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: BLOB insert causes extra update
PostPosted: Tue Oct 25, 2011 11:47 am 
Newbie

Joined: Tue Oct 25, 2011 11:24 am
Posts: 1
Hi,

We are using Hibernate 3.0, Java 1.6.0_20 and Oracle 10.2 (and JDBC4 drivers).

We have a table T with a row R which contains BLOB field B in it. The table is used heavily and needed performance tuning. Our DBA's ran Oracle reports and said they noticed occasional "update T" statement right after an "INSERT INTO T". In our code, we only have INSERT statements, no updates. So where are the updates coming from? Here is how we are saving the data with Hibernate.

Object R = new R(); // new Row - This maps to an object in our application
R.setField1("Field1");
R.setBlob(B); // B is the BLOB field. It is a serialized object in our application
session.persist(R);

The size of the BLOB varies anywhere from 2K to 20K. Any help would be greatly appreciated.

Thanks,
Jay Malde


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.