Optimizing SQL queries by removing Sort operator in Execution plan
问题 I’ve just started looking into optimizing my queries through indexes because SQL data is growing large and fast. I looked at how the optimizer is processing my query through the Execution plan in SSMS and noticed that a Sort operator is being used. I’ve heard that a Sort operator indicates a bad design in the query since the sort can be made prematurely through an index. So here is an example table and data similar to what I’m doing: IF OBJECT_ID('dbo.Store') IS NOT NULL DROP TABLE dbo.[Store