How can I run NHibenate queries asynchronously?

Posted by andrey-tsykunov on Stack Overflow See other posts from Stack Overflow or by andrey-tsykunov
Published on 2010-03-21T04:41:45Z Indexed on 2010/03/21 4:51 UTC
Read the original article Hit count: 378

Hello,

One way to increase scalability of the server application is to run IO-bound operation (reading files, sockets, web requests, database requests etc) asynchronously. This does not mean run then in the ThreadPool which will just block threads while operation is being executed. The correct way is to use asynchronous API (BeginRead, BeginGetResponse, BeginExecuteReader etc). The problem is well described in CLR vi C# book.

Here is some article about asynchronous queries in Linq to SQL.

Are any ways to execute Nhibernate query asynchonously? What about Linq to NHibernate?

Thank you, Andrey

© Stack Overflow or respective owner

Related posts about asynchronous

Related posts about nhibernate