I am having an app reading and writing to a Sharepoint list. The list is getting larger and larger (now 2000 records, antipating over 50,000 or more) in the same pace of the rollout. Before it's too late, I'm considering whether or not to apply an index to the Sharepoint list to improve the reading performance as my app is to read more frequently than write to the list.
I have a filter query in the app filering these fields:
- DateInText (a text field containing a date to solve the delegation issue)
Do you have any advice on whether applying index? If so, which column should the index be applied on?
all columns being filtered or sorted on in the PowerApp should be indexed in SP
You can create upto 20 indexes per list/library and indexes cannot be added/deleted once your list hits 20k items
Check my vlog series on delegation
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Thanks @RezaDorrani . I read some articles saying that adding index may not be beneficial sometimes, like more storage required, slow writing speed. So if I to add an index, I think I should add the most efficient one.
Do you have any idea or advice whether I shall create a simple index of a column or a compound index ?
Having indexes on your SP list would earn more benefits than making INSERT/UPDATE/DELETE transactions slow.
Please review if you really need 2000 records for non-delegable operations. Reducing Data Row Limits to 500 from 2000 would improve performance obviously, benchmark proved min 20% of performance gain at P99 percentile.
If your SharePoint list has many columns which might not be neccessary all of them, you can also create a view in sharepoint and use Flow to retrieve sharepoint view data. This would reduce the amout of retrieving data out of SharePoint list.
For long-term, considering other data sources like CDS would be recommended.
Please feel free to share a SessionId or AppId of your app with mentioning me. Then, I would check telemetry.
Check it out!
Check it out!
Fill out a quick form to claim your user group badge now!
Find out where you can attend!
Features releasing from October 2019 through March 2020
The largest Power BI, Power Platform, and Data conference in New Zealand