Skip to content

Commit 93f70d7

Browse files
Fix a technichal issue about filtered indexes
For a query to benefit from a filtered index, the 'WHERE' cluase of it should be a subset of the 'WHERE' cluase of the filtered index. The documentation explains it contrariwise.
1 parent b56a56e commit 93f70d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/relational-databases/indexes/create-filtered-indexes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Filtered indexes can provide the following advantages over full-table indexes:
4040

4141
When a column only has a few relevant values for queries, you can create a filtered index on the subset of values. The resulting index will be smaller and cost less to maintain than a full-table nonclustered index defined on the same key columns.
4242

43-
For example, consider a filtered index in the following data scenarios. In each case, the `WHERE` clause of the filtered index should be a subset of the `WHERE` clause of a query to benefit from the filtered index.
43+
For example, consider a filtered index in the following data scenarios. In each case, for a query to benefit from the filtered index, the `WHERE` clause of it should be a subset of the `WHERE` clause of the filtered index.
4444

4545
- When the values in a column are mostly NULL and the query selects only from the non-NULL values. You can create a filtered index for the non-NULL data rows.
4646
- When rows in a table are marked as processed by a recurring workflow or queue process. Over time, most rows in the table will be marked as processed. A filtered index on rows that aren't yet processed would benefit the recurring query that looks for rows that aren't yet processed.

0 commit comments

Comments
 (0)