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.  [ 4 posts ] 
Author Message
 Post subject: outofmemory occurs while listing data using hibernate
PostPosted: Thu Jan 04, 2007 6:09 am 
Newbie

Joined: Thu Jan 04, 2007 5:50 am
Posts: 4
Location: bangalore
While retriveing data from postgres using hibernate 3.0 its taking too much of time some time its showing outofmemory error

query sample hsql query

from Candidatemaster as a where a.userpk in (select b.userpk from UserAddress as b where b.statepk=1 and b.addres_type=:code)

For Table we created index allso but it still showing out of memory error

how to solve it

thanks









Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Problems with Session and transaction handling?

Read this: http://hibernate.org/42.html


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 04, 2007 6:19 am 
Beginner
Beginner

Joined: Fri Nov 28, 2003 6:57 am
Posts: 20
Can you provide some more information:
- how large is the DB
- how much entries are in table Candidatemaster
- what SQL statement is generated
- how much memory is assigned to the JVM


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 04, 2007 6:23 am 
Regular
Regular

Joined: Thu Aug 17, 2006 4:50 am
Posts: 55
Location: Mallorca
try with

Code:
select a
from Candidatemaster as a,
     UserAddress as b
where
     b.statepk=1 and
     b.addres_type=:code and
     a.userpk = b.userpk


Top
 Profile  
 
 Post subject: More Information - thorstenschaefer
PostPosted: Thu Jan 04, 2007 7:19 am 
Newbie

Joined: Thu Jan 04, 2007 5:50 am
Posts: 4
Location: bangalore
-Total tables=65
-Candidatemaster more than 1 lakh
-hsql - from Candidatemaster as a where a.userpk in (select b.userpk from UserAddress as b where b.statepk=1 and b.addres_type=:code)
- dont know (default JVM setting is used)




thorstenschaefer wrote:
Can you provide some more information:
- how large is the DB
- how much entries are in table Candidatemaster
- what SQL statement is generated
- how much memory is assigned to the JVM


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