Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 help with this stubborn developer?

like image 222
Toran Billups Avatar asked Sep 08 '08 18:09

Toran Billups


1 Answers

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

like image 75
Espo Avatar answered Oct 13 '22 18:10

Espo