-->
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: Batch and Oracle
PostPosted: Tue Apr 17, 2007 4:29 am 
Beginner
Beginner

Joined: Tue Mar 13, 2007 9:46 am
Posts: 20
I am writing a Java application utilizing Hibernate for Oracle access. I am processing orders with order lines stored in a table.

I need to scroll through all order lines and process them, but there might be 20 000 order lines, and they might have data fields of up to 5000 characters.

How should this be done in Hibernate? I have read that server side cursors are not supported on Oracle 9 and that it emulates scrolling by caching all records in JVM.

Should I read e.g. the 1000 first ids and then process them, and then continue with the next 1000 etc?

I'd rather not load 20 000 records * 5K into memory...

(PL/SQL is not an option here...)


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.