-->
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: Page class from Gavin's blog
PostPosted: Sun Aug 15, 2004 10:51 am 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
Is there any reason for use setFirstResult/setMaxResult via ScrollableResult ?

- setFirstResult/setMaxResult make new query to database (for oracle use rownum and don't work with oracle 8.0 and order by)
- ScrollableResult use same query and cursor in database (oracle and postgresql use this)

regards


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 15, 2004 10:53 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
don't hold cursors open across user interactions


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 15, 2004 2:30 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
never mind - we open cursor again and select part of rows - it is quicker than select with rownum (for oracle)

for any applications we have hold cursor, too

regards


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.