Adding an index to a list or library column increases performance when you use filters. You can add indexes on up to 20 columns on a list or library. While you can add up to 20 indexes per list or library, it's recommended you add indexes to only to the most commonly used columns and on those columns which you are using to filter data both in views as well as using the column headers. Indexes add overhead to the data so use them only where they make sense to be used.
If you've exceeded the List View Threshold and been blocked, you can normally still add indexes to columns, by default, when you have fewer than 20,000 items in your list or library. In SharePoint, you can manually add an index to a list of any size.
To filter column data in a list or library, to help choose which columns to index, note which columns are most commonly used across different views for filtering.
Select the name of the list or library in the navigation, or select Settings , select Site Contents, and then click the name of the list or library.
select Settings , and then select List settings or Library settings.
Scroll down to the Columns section.
Select Indexed columns.
On the Indexed Columns page, select Create a new index.
Do the following:
Notes:
Select Create.
If you want to remove an existing index from a column, select the index at step 5 above and then select Delete to remove it again.
Supported Column Types
|
Unsupported Column Types
|
Metadata Navigation and Filtering is enabled by default on most SharePoint sites. Even if metadata navigation has not been configured for a specific list or library, Metadata Navigation and Filtering is still at work behind the scenes to improve the performance of views. The Metadata Navigation and Filtering feature can automatically select the best index to work every time a view is loaded. When you load new views, apply filters to views, clear filters, or apply a sort on a field, query optimization determines the best way in which to query the database.
If a user creates or loads a view that cannot use an index to query the list, then Metadata Navigation and Filtering will construct and execute a fallback query. A fallback query is a modified version of the original user query that displays a partial set of the items requested because it queries against only a portion of the list instead of the entire list. It is intended to provide you with some useful results in circumstances when the original query is blocked due to large list throttling. Up to 1,250 of the newest items are displayed based on when those list items were added to the list. Occasionally, fallback queries will return 0 results if no items in the part of the list scanned by the query contain results that match the original user query.