-->
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.  [ 2 posts ] 
Author Message
 Post subject: Criteria query pagination very slow with Derby
PostPosted: Mon Aug 03, 2009 4:12 pm 
Newbie

Joined: Mon Aug 03, 2009 3:01 pm
Posts: 1
I'm seeing significant delays when using Hibernate (3.3.2) in combination with Derby (10.5.1) and attempting to paginate my query results.

When setting setMaxResults(1), I'm seeing a 15 second delay from the time I execute the .list() until the result set (instance) is returned. (Note - this is a query on a very simple table schema no relationships to other tables). I've included setFetchSize(1) as well, even tho it's unnecessary on my simple table, and have not seen any improvement here either.

I'm willing to believe this is a newbie issue, however the same source code (without any modifications), returns in milliseconds with mySQL. Additionally the other ORM I've prototyped on Derby, Cayenne, also returns sub-1 second... a pretty good indication that it's Hibernate and not my code / schema.

-Has anyone else seen this issue?

-Any suggestions for workarounds? I really don't want to replace Hibernate with Cayenne unless I absolutely have to.


Top
 Profile  
 
 Post subject: Re: Criteria query pagination very slow with Derby
PostPosted: Tue Jul 19, 2011 9:28 am 
Newbie

Joined: Tue Jul 19, 2011 9:27 am
Posts: 1
I have same problem... did u find any solution for that?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.