-->
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: Slow performance when looping through Nhibernate list
PostPosted: Sun Apr 24, 2011 4:56 am 
Newbie

Joined: Sun Apr 24, 2011 4:49 am
Posts: 1
I have a very simple entity with just an id and a description.
When i try to do a criteria.List<MyEntity>() and then loop through that list to transform it to a DTO object, it takes a considerably long time compared to entity framework or using a datareader. Looping through the Nhibernate list takes about 8 seconds for just 2000+ records unlike for entity framework its instantaneous.

I've tried settings flushmode to never, clearing out the session but it doesn't affect the performance. Can anybody here shed some light as to why this is happening?


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.