-->
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: timeout while fetching bulky data using criteria
PostPosted: Tue Dec 20, 2005 10:47 am 
Newbie

Joined: Mon Dec 12, 2005 3:42 am
Posts: 5
Hibernate version: 3.0.5

Name and version of the database you are using:oracle 9i

The generated SQL (show_sql=true):
Hibernate: select this_.id as id0_, this_.tcn as tcn19_0_, this_.name as name19_0_, this_.description as descript5_19_0_, this_.volume as volume19_0_, this_.last_change as last7_19_0_, this_.last_group_change as last8_19_0_, this_.dov_id as dov9_19_0_, this_.pco_id as pco10_19_0_, this_.sequence as sequence19_0_, this_.product_number as product11_19_0_, this_.number_of_outlets as number12_19_0_, this_.pde_id as pde14_19_0_, this_.con_id as con15_19_0_ from spp_product_component this_ where this_.class='CP'

Total number of records in the table are - 75000
Nd the count of above query if executed in TOAD is - 65000

When ever I get all the records using criteria above query is generated
And it gives me timeout error on sun 1app server 7
and when i try to execute the same code using my junit bypassing the appserver it gives me out of memory error.

Can any one suggest what shuld i do to avoid this.

Were ever I do bulk fetch I am facing this problem ....
pls suggest if anyone has faced same issue.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 20, 2005 11:16 am 
Expert
Expert

Joined: Fri Aug 19, 2005 2:11 pm
Posts: 628
Location: Cincinnati
don't retrieve all the results at once

_________________
Chris

If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.


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.