-->
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: Auction Example Performance Question
PostPosted: Thu Sep 09, 2004 4:16 pm 
Newbie

Joined: Fri Sep 12, 2003 9:13 am
Posts: 10
I have a performance question. I've used Hibernate in the past, but wanted to revisit some newer parts, so I was messing around with the eg example. I saw the "slow" and "fast" techniques for viewing all auctions. The difference in behavior makes sense.. with the fast technique instantiating a new object that doesn't carry any overhead with it, no relationships, or anything else.

The confusing thing for me is that the slow technique returns much faster for me running that test.

My initial assumption is that the difference is due to the first aproach returning items in cache, whereas the "fast" technique needs to create new objects. I'm not sure if this is accurate though.

I'm using Hibernate 2.1 with MySQL, and using a slightly modified eg/Auction example. (The modification is adding timing into the code before/after methods for looking at execution time..)

So, why would I see this behavior? Perhaps its just opposite-day on my computer..

thanks!


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