-->
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: first run for loading of data taking longer
PostPosted: Thu Jun 23, 2005 7:07 am 
Newbie

Joined: Wed Jun 22, 2005 4:57 am
Posts: 3
[b]Hibernate version:3.0.5

I have been executing a test for a method testLoad() that loads 500 records from the database table having 120,000 records. When then test starts it runs the same testLoad() for about 10 times, but each time the testLoad() runs, it ensures that it creates a new Session objects and it runs the query, it always returns DIFFERENT 500 records.

Now when I start the test, the time take by the testLoad() for the first time, it takes the around three times of the time taken by the subsequent 9 runs.

Can anyone tell me what possible could be the reason ?

Thanks a ton,
Amit Chhajed


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.