I have a session with 10 select queries in it. When I commit the session, do all 10 queries get sent over as a single request, or are there 10 database round trips?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
With NHibernate, you can use Future, them it can be done in just one round trip (if you database driver supports this).
Both will be executed in only on round trip to DB.
More info about Future here and here