I notice that some queries created by NHibernate are executed as batches whereas others are not. When I profile my database using Sql Server Profiler, the event type for these queries is listed as 'SQL:BatchStarting' followed by 'SQL:BatchCompleted', rather than simply RPC:Completed.
Is there any reason why some statements are run as batches and some not?
How does NHibernate decide which queries should be executed as batches?
It seems to execute a lot of single queries as batches - why would this be?