August 16, 2017 at 1:16 pm
Under what circumstances will a stored procedure be recompiled in SQL2012? Specifically, will it recompile when:
1. The row count in a permanent table changes significantly (e.g., goes from say, 0 to several million rows)?
2. The stored procedure creates and loads #temp tables?
I am looking at a stored procedure that intermittently exhibits poor performance and I am trying to figure out what might be causing this to happen. The nature of the data being processed is pretty constant.
August 16, 2017 at 1:27 pm
http://www.sqlinthewild.co.za/index.php/2011/08/16/compiles-and-recompiles/
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
August 24, 2017 at 2:30 pm
GilaMonster - Wednesday, August 16, 2017 1:27 PM
Nice article.
For that reason, we run stats on some of the tables nightly to get better performance
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply