cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
taranxd
Level: Powered On

Sluggish performance of Gallery Control with large amount of items

We're using Gallery control to render items stored in a collection by adding labels as a grid. The collection is being populated via Flow and can have around 10,000 items.

 

When the gallery is rendered , the page hangs and is totally unusable. Is there a workaround for this?

 

Note: We've already optimized our response time by fetching all the data as JSON and saving it in a collection. We can't use DataTable as the columns being us

4 REPLIES 4
Dual Super User
Dual Super User

Re: Sluggish performance of Gallery Control with large amount of items

Hi @taranxd 

 

Collections store data locally and with 10k items loaded on memory performance will take a hit

 

If you could directly connect to the data source from PowerApps itself and use the concept of delegation so that the work is delegated to the underlying data source your performance would improve

 

http://rezadorrani.com/index.php/2019/09/18/powerapps-delegation-with-sharepoint-as-a-data-source-wi...

 

https://powerapps.microsoft.com/en-us/blog/powerapps-optimization-techniques/

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

taranxd
Level: Powered On

Re: Sluggish performance of Gallery Control with large amount of items

Thanks for your response. The issue only occurs when we try to render a large set of data. Having the same collection size and rendering about ~500 components doesn't tax on performance as much.

Dual Super User
Dual Super User

Re: Sluggish performance of Gallery Control with large amount of items

@taranxd 

 

Yes because by default 500 is the delegation limit set by MSFT and can be increased to 2k 

But performance will get affected as items grow and PowerApps has to do all the work

 

Delegation will be your best bet

taranxd
Level: Powered On

Re: Sluggish performance of Gallery Control with large amount of items

Thanks for trying to help but I am certain it's not regarding the amount of data. As even for the same amount of data in local memory if I only render around 600-700, the app is usable but it's downhill from there. 

 

Gallery control should not be this bad at rendering simple labels and posing a limit of only rendering 500 UI elements at once is somewhat hampers a lot of use cases.

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (3,431)