How SharePoint generate automatic indexes

john john Pter 115 Reputation points
2024-05-27T23:51:55.37+00:00

I have created a custom SharePoint online list, and I did couple of sorts inside my list views, where all the fields i made sort on them get added as automatic indexes inside the list.

So will automatic indexing consider the sort we do inside power apps, power automate, SharePoint rest api and graph Api? or it only consider the sort we do inside the list views?

Thanks

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,080 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,769 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Haoyan Xue_MSFT 21,411 Reputation points Microsoft Vendor
    2024-05-28T03:04:11.4833333+00:00

    Hi @john john Pter ,

    When you sort a column within a list view, SharePoint automatically creates an index for that column. This index helps optimize filtering and sorting operations within that view.

    The automatic index creation is limited to lists and libraries with fewer than 20,000 items. If your list has more than 20,000 items, you won’t get automatic indexing when sorting within a view.

    Unfortunately, automatic indexing doesn’t extend to these scenarios. When you perform sorting or filtering using Power Apps, Power Automate (Flow), REST API, or Graph API, SharePoint won’t automatically create indexes.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.