HI all,
How does NHibernate executes the queries? Does it manipulates the queries and uses some query optimization techniques? And what is the query execution plan followed by NHibernate?
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.
Not exactly sure about the question. But NH executes queries using normal ADO.NET with all the data passed as parameters.
It generates as optimal queries as possible with the information provided for it.
It caches not only the queries, but also the data returned by them if configured so.
NH takes into account that the execution plan should not be generated on the server if not required. So the execution plan will be the same for all queries of of the same kind.