-->
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: when query result is very big,how to avoid out of memory
PostPosted: Mon Jun 01, 2009 11:37 pm 
Newbie

Joined: Mon Jun 01, 2009 5:16 am
Posts: 3
if the result set is very big , for example ,1G data ,we used getResultList, Easily machine will out of memory, so in hibernate we can used Query.iterater to avoid out of memory ,but if we use only jpa , Query.iterater is not available, it seemed that we can use getResultList only, how to resolve the problem:out of memory.

Of course ,we can use paged query or use jdbc, but I think sometimes it's not a good idea, any other resolution?

I think many of us will face such a problem,I wonder how others solve it?


Top
 Profile  
 
 Post subject: Re: when query result is very big,how to avoid out of memory
PostPosted: Tue Jun 02, 2009 7:17 am 
Beginner
Beginner

Joined: Mon Jun 01, 2009 5:39 am
Posts: 34
ScrollableResults, maybe?


Top
 Profile  
 
 Post subject: Re: when query result is very big,how to avoid out of memory
PostPosted: Wed Jun 03, 2009 2:26 am 
Newbie

Joined: Mon Jun 01, 2009 5:16 am
Posts: 3
fge wrote:
ScrollableResults, maybe?


o, but it is not belong to JPA , I hope to be solved with JPA, so I can transplant to toplink or other jpa tool later .


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.