Forum Discussion
Ofer-Gal
Jun 02, 2021Copper Contributor
How do I overcome the 5000 threshold Of SPO lists
I have many libraries with way more than 5000 files. I am Building an SPFx web part and one of the action is to find documents in these libraries. Using SP REST even when using top(10) I get th...
Joe Stocker
Jun 20, 2021Bronze Contributor
I don't think lists were created for this purpose. It sounds like you need to create a database if you need to programmatically query for information with > 5000 rows. Apparently if you add an index then you can query for up to 20,000 items. https://support.microsoft.com/en-us/office/manage-large-lists-and-libraries-b8588dae-9387-48c2-9248-c24122f07c59?ui=en-us&rs=en-us&ad=us
Ofer-Gal
Jun 20, 2021Copper Contributor
Joe Stocker My problems are not with pure lists they work fine with more than 10,000 items so far.
The big problem is with files in libraries some of which will have more than 5000 files and then I can't add more files or publish major version with JavaScript methods.
I contact MS support and they have no solution but to structure libraries with folders of less than 5000 which is a big development challenge that adds nothing to the business needs.
- Joe StockerJun 20, 2021Bronze ContributorOne out of the box idea is to use a Microsoft Flow to take the list data and post it to a database that you can then programmatically query
- Ofer-GalJun 20, 2021Copper ContributorAgain, the problem is not in Lists that can be replaced by Database, the issue is with libraries with files, not a suitable candidate for Database