scarydba.com
"Pretty Plans vs. Performance" or "Grant Gets Pwned" - Grant Fritchey
If you get an execution plan that looks like this: I wouldn’t blame you for immediately thinking about query tuning. Especially if the code that generated it looks like this: SELECT soh.OrderDate, sod.OrderQty, sod.LineTotal FROM Sales.SalesOrderHeader AS soh INNER JOIN Sales.SalesOrderDetail AS sod ON sod.SalesOrderID = soh.SalesOrderID WHERE soh.SalesOrderID IN (@p1, @p2, @p3, @p4, @p5, […]
Grant Fritchey