Tag: Indexes

  • Filtered Indexes and Plan Parameterization

    Filtered Indexes and Plan Parameterization

    In this post, we’ll look at how filtered indexes in SQL Server work when the query is parameterised on the column of the filtered index. The query The following query in the Stack Overflow 2010 Database, provided under cc-by-sa 4.0 licence from Stack Exchange Data Dump, will find all users with the name John whose…

    Keep reading

  • OR predicates and Indexes

    OR predicates and Indexes

    In this post, we will look at how SQL Server accesses indexes when an OR predicate is used. For this demo, I am going to use the Stack Overflow Database. I am using the large 2024 version provided under cc-by-sa 4.0 licence from Stack Exchange Data Dump and running in compatibility level 160 on a…

    Keep reading

  • Understanding SQL Server Indexes

    Understanding SQL Server Indexes

    This post follows on from the previous two about execution plans in SQL Server, in those posts I covered what an execution plan is, what they tell us and why we might need to use them. Indexes are actually nothing at all to do with execution plans but when talking about one, you often end…

    Keep reading