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

前端 未结 13 2537
独厮守ぢ
独厮守ぢ 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:11

    I would start by reading this article:

    http://decipherinfosys.wordpress.com/2007/03/27/using-stored-procedures-vs-dynamic-sql-generated-by-orm/

    Here is a speed test between the two:

    http://www.blackwasp.co.uk/SpeedTestSqlSproc.aspx

提交回复
热议问题