seniorT-SQL
What is SQL Server filtered index and how does optimizer leverage it?
Updated May 17, 2026
Short answer
Filtered indexes store a subset of rows and improve query performance for selective predicates.
Deep explanation
A filtered index includes only rows that satisfy a WHERE condition. This reduces index size, improves cache efficiency, and enhances selectivity. The optimizer can use it when predicates match filter conditions. However, mismatched predicates or implicit conversions prevent usage.
Unlock with a Pro subscription to view this section.
View pricingReal-world example
No real-world example available yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProCommon mistakes
No common mistakes listed yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProFollow-up questions
No follow-up questions available yet.
Unlock with a Pro subscription to view this section.
Upgrade to Pro