cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
NigelP
Kudo Kingpin
Kudo Kingpin

What is the maximum size of a collection ?

Hi 

 

I want to load 15,000 records into a collection.  I know I might have to feed them in 500 (or 2000) at a time, but will PowerApps let me have such a size of collection ?

 

What is the maximum size of a collection ?

 

Thanks

 

NIgel

1 ACCEPTED SOLUTION

Accepted Solutions
v-monli-msft
Community Support
Community Support

Hi @NigelP,

 

According to delegation documentation:

Collections stored in context variables don't require delegation. All of this data is already in memory, and the full PowerApps language can be applied.

 

The 500-2000 delegation record limit does not apply to collections, i.e. you can store as many records in a collection as you like.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7 REPLIES 7
v-monli-msft
Community Support
Community Support

Hi @NigelP,

 

According to delegation documentation:

Collections stored in context variables don't require delegation. All of this data is already in memory, and the full PowerApps language can be applied.

 

The 500-2000 delegation record limit does not apply to collections, i.e. you can store as many records in a collection as you like.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Meneghino
Community Champion
Community Champion

I have stored up to 10,000 records in a collection without any issues, and I am sure more can be stored.  I think the limit is the ability of your device to handle the memory.

Depending on where the data is stored, there may be better ways to load up your collection than repeated downloanding of 2,000 records (the maximum currently available through the built-in functions).  SQL Server or Azure SQL Database are particularly flexible.

Where is your data?

Hi everyone.

 

We have been able to store over 10 000 records in a collection and the memory and performance was quite good actually. The only time that it started hitting the memory hard is when you display that collection in a gallery, and scroll through all the data. It actually feels like there is a staging system in PowerApps that stores the collection info and that the entire collection is not stored in the browser (feels very much like Cosmos or Mongo). The browser is only hit with the info when you start displaying the data from the collection.

 

From our tests, it is also better to use addcolums to join info from tables into a collection, than to do lookups in the gallery to 'join' data.

 

Hi @Meneghino

 

The data is currentl store in SHarePoint Online lists.

 

Regards

 

Nigel

Meneghino
Community Champion
Community Champion

Sorry, can't think of how to get >2000 rows in one go from SharePoint lists.

Does it have to be in SharePoint? How important is it to get all the data in one go and not in increments of 2000? We have successfully stored data directly in Mongo from PowerApps before, in which case you can get quite a lot of data in and out at great speeds. You can also do some fancy footwork with Flow to get the data for you, it all depends on how much data you need to get, how quick you want it and what you are willing to let go of in terms of application simplicity

Agreed - but I can repeatedly read list items from a list (2,000 at a time) but up to how many ?

 

How much memory does PowerApps reserve for collections ?

 

Collections are great for filtering so I may only bring back onto the screen a much smaller number of items.

 

Regards

 

Nigel

 

 

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,383)