Forum Discussion
Problem list more than 5000 items with column indexed
Hi, I have a list in SharePoint Server 2016 with more than 5000 items. When I use rest only items/&top=20 the rest works fine. But, When I add orderby using a indexed column, like created date, the threshold limit error happen... When I use the column ID in orderby the rest works perfectly. The same behavior happens in native SharePoint view... I have using paging in native view too.
I created the column "created date SP native" like indexed column in library settings.
Thanks
Everton
5 Replies
- If your on prem just go in and increase your view threshold? ;)
- EVERTON BATISTA PETRO ALEXANDREBrass Contributor
Hello Chris, The infrastructure team doesn't increase the limit, because the database would be overloaded... Is there another option?
Thanks
Everton
- That said I don’t think SharePoint 2016 has the same tech SharePoint online has for getting around the limit so expanding that is Probabaly your only option.
- EVERTON BATISTA PETRO ALEXANDREBrass Contributor
When I call in SP 2016 Server: https://homsintegre.ons.org.br/sites/3/41/_api/web/lists/GetByTitle('Produtos')/Items?&top=20&%24select=Id&%24orderby=Created+desc&%24expand=File
First the sharepoint get all items and after the sharepoint send the first 20 items???
Thanks
Everton