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: Enumerable and number of executed query
PostPosted: Fri Sep 05, 2008 6:44 am 
Newbie

Joined: Fri Sep 05, 2008 6:39 am
Posts: 1
Hibernate version:1.2.
Name and version of the database you are using: Oracle 10

Hi,

I have a performance problem, I have to increase performance of my project.
I need to read 100.000 records from a db table.
If I use ado.net with a datareader I can create a cursor with only one query.
But query.Enumerable<MyClass>() executes a first query to retrieve all primary keys then it executes a query for each record.
Is it possible to configure nhibernate to use only one query like ado.net?

Thank you and sorry for my bad english

Michele Fabbri


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.