cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
gavinleung
Level 8

Sharepoint list index or not ?

Hi folks, 

 

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:

- Title

- Person

- 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?

 

Thanks,

Gavin

 

4 REPLIES 4
Super User
Super User

Re: Sharepoint list index or not ?

Hi @gavinleung 

 

100%

 

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

https://www.youtube.com/watch?v=gwiErbYtRdA

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

gavinleung
Level 8

Re: Sharepoint list index or not ?

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 ? 

gavinleung
Level 8

Re: Sharepoint list index or not ?

Any advice from anyone ? 

Jinman
Level: Powered On

Re: Sharepoint list index or not ?

@gavinleung 

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. 

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Demo Extravaganza Championship Voting Open

Voting Ends: October 30, 2019!

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 170 members 4,412 guests
Please welcome our newest community members: