-->
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: Oracle pagination: rownum vs rank()
PostPosted: Thu Jan 14, 2010 6:13 pm 
Beginner
Beginner

Joined: Fri May 06, 2005 2:37 pm
Posts: 39
In using Hibernate Criteria to do pagination, we were experiencing terrible performance. We came across this article: http://www.dba-oracle.com/t_sql_tuning_rownum_equals_one.htm that talks about using rank() instead of rownum for better performance.

Has anyone else seen this problem with Hibernate criteria? It looks like the dialect holds the rownum logic, but I don't know of a good way to override it on a case-by-case basis, and I really don't want a special dialect.


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.