September 2018
Intermediate to advanced
947 pages
21h 36m
English
In the previous chapter, I discussed how to get execution plans into the cache and how to get them reused from there. It’s a laudable goal and one of the many ways to improve the overall performance of the system. One of the best mechanisms for ensuring plan reuse is to parameterize the query, through either stored procedures, prepared statements, or sp_executesql. All these mechanisms create a parameter that is used instead of a hard-coded value when creating the plan. These parameters can be sampled, or sniffed, by the optimizer to use the values contained ...
Read now
Unlock full access