Announcements
I have a gallery where i patch the selected record. Im wondering whats the best practice? To have the gallery directly to the datasource or use a collection?
Hi @helpPowerApps,
I think it is best to have your gallery attached to a collection. This will reduce the amount of times you need to connect with your data source. This makes your app performance slightly faster.
Please tick Accept as solution if the answer is useful.
Thanks,
@AARON_C
ah i thought having the gallery connected to the datasource would be faster? So that theres no need to add ClearCollect to refresh the collection every time theres an update.
Hi @helpPowerApps ,
I typically use two collections - one that populates the gallery and another one that I use to patch the datasource. Problem with one collection is that if the collection that is populating the gallery is also being updated, the gallery will kind of "refresh" every time the collection gets updated providing for a bad user experience.
---If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions.
Thanks!
Hardit Bhatia
Microsoft Business Applications MVP
Microsoft Certified Trainer MCT
Blog | Twitter | LinkedIn | Facebook | YouTube | Email
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 541
WarrenBelz 434 Most Valuable Professional
Valantis 289