-->
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: Forward-only scrolling through large results
PostPosted: Tue Aug 17, 2004 4:13 pm 
Regular
Regular

Joined: Fri Dec 12, 2003 2:09 pm
Posts: 84
Location: San Francisco, USA
Looks like Query scrolling via the scroll() method now works in Hibernate 2.1.6, which is nice.

One of the motivations for this feature, I believe, is to allow one to iterate through large result sets without loading all data into the JVM at once.

Unfortunately, the current implementation of scroll(), which uses a prepared statement with ResultSet.TYPE_SCROLL_INSENSITIVE, doesn't help matters when using Oracle 9i's JDBC driver. Oracle JDBC driver caches scrollable results sets in the JVM.

An alternative is to allow for forward-only scrolling. I imagine that a new method, Query.scroll(boolean), could be implemented to allow the user to specify whether the result set should be forward-only rather than scroll-insensitive. Of course, some refactoring of the ScrollableResults interface would be required since it would not be possible to "retreat" when scrolling through a forward-only result set.

Does this merit filing a JIRA issue?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 17, 2004 4:21 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Yes, please do.

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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 17, 2004 5:13 pm 
Regular
Regular

Joined: Fri Dec 12, 2003 2:09 pm
Posts: 84
Location: San Francisco, USA
Done.

http://opensource.atlassian.com/project ... se/HB-1181


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.