-->
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: Hibernate with JasperReports : Query result with > 100,00
PostPosted: Fri Nov 09, 2007 6:32 pm 
Newbie

Joined: Tue Feb 20, 2007 4:49 pm
Posts: 5
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.2.x

Mapping documents: Native SQL

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

Full stack trace of any exception that occurs:

Name and version of the database you are using:DB2

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Problems with Session and transaction handling?N

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

We are generating JasperReport from Hibernate using Native SQL. The problem is if the resultset is more then 100,000 records then its throwing outofmemory.

Is there a way retrieve 1000 records at a time from DB2 and put it into a report ?


Top
 Profile  
 
 Post subject: Under which circumstance
PostPosted: Mon Nov 12, 2007 4:42 am 
Newbie

Joined: Tue May 17, 2005 8:55 am
Posts: 11
Hi,

what is your system environment?
Normally 100.000 records shouldn't be that problem, when you have enough memory. -Xmx is set to an appropriate size? You only fetch the columns you need for the report?

Try verbose:gc (http://java.sun.com/developer/technicalArticles/Programming/GCPortal/) together with heap-profiling tool to find the bottleneck.


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.