Yes. The NHibernate interface
session.QueryOver<MyEntity>().Future(); which gives IEnumerable<MyEntity>() would be perfect for the objective. The problem is that Future() does not work on stateless sessions and stateful sessions cannot be used in this case (more than 10 millions of records). So, reader-like streaming would be desired. Thanks, Marcello. Il giorno giovedì 21 febbraio 2013 10:11:30 UTC+1, Maximilian Haru Raditya ha scritto: > > What do you mean by "trying a stateless session with Enumerables"? > Do you mean "streaming data" using NHibernate like using DataReader? > > > On Wed, Feb 20, 2013 at 11:06 PM, Marcello Esposito > <[email protected]<javascript:> > > wrote: > >> Hi all. >> >> I have to read all records in a big table (more than 10 millions of >> records) for indexing purposes (Lucene.Net involved). >> In order to assure good performance and prevent memory overloads, I was >> trying a Stateless Session with Enumerables (not Lists), but I realized >> that .Future() doesn't work on stateless sessions and didn't find another >> way to get a IEnumerable. >> >> Any help? >> >> Thanks, >> Marcello. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "nhusers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected]<javascript:> >> . >> Visit this group at http://groups.google.com/group/nhusers?hl=en. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > > > -- > Regards, > > Maximilian Haru Raditya > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/nhusers?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
