We should consider using prepared statements - http://msdn.microsoft.com/en-us/library/ms175528(v=SQL.105).aspx
We'd need to test the perf of this to make sure it actually provides any significant improvement in EF. SQL Server documentation suggest it should perform better if we are executing the same command more than 3 times.
Once a command is prepared we can also avoid sending the entire command text and just send the command id and parameter values.
We'd need to test the perf of this to make sure it actually provides any significant improvement in EF. SQL Server documentation suggest it should perform better if we are executing the same command more than 3 times.
Once a command is prepared we can also avoid sending the entire command text and just send the command id and parameter values.