-->
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: ScrollableResults
PostPosted: Wed Nov 19, 2008 3:24 am 
Newbie

Joined: Wed Nov 12, 2008 8:21 am
Posts: 4
Hi I am having problems with ScrollableResults. It appears to me that hibernate is not scrolling throught the results and is instead fetching everything into memory at once.

Does any body know why this may be happening. I am using Hibernate 3.2.6 with mysql Ver 14.12 Distrib 5.0.45,
and mysql-connector-java-5.1.7-bin.jar.

My query looks like this

Code:
return logReadOnlySession.createQuery(
   "from AuditLog as agentLog" +
   " where agentLog.timestamp" +
   " between :startTime and :endTime" +
   " order by agentLog.userID")
   .setLong("startTime", summary.getStartTime())
   .setLong("endTime", summary.getEndTime())
   .setCacheMode(CacheMode.IGNORE)
   .setFetchSize(AUDIT_LOGS_FETCH_SIZE)
   .scroll(ScrollMode.FORWARD_ONLY);


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.