Why is parameterized SQL generated by NHibernate just as fast as a stored procedure?

前端 未结 13 2568
独厮守ぢ
独厮守ぢ 2020-12-14 20:47

One of my co-workers claims that even though the execution path is cached, there is no way parameterized SQL generated from an ORM is as quick as a stored procedure. Any hel

13条回答
  •  余生分开走
    2020-12-14 21:15

    I've had this argument many times over.
    Almost always I end up grabbing a really good dba, and running a proc and a piece of code with the profiler running, and get the dba to show that the results are so close its negligible.

提交回复
热议问题