Skip to main content
Community site session details

Community site session details

Session Id : iJNkZU0EnlEVXOeAyNUF1c
Power Apps - Building Power Apps
Unanswered

Directly to Datasource or collection for gallery

Like (0) ShareShare
ReportReport
Posted on 30 Nov 2023 22:52:39 by 44

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?

Categories:
  • PowerAddict Profile Picture
    7,314 Most Valuable Professional on 01 Dec 2023 at 02:37:04
    Re: Directly to Datasource or collection for gallery

    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

  • helpPowerApps Profile Picture
    44 on 30 Nov 2023 at 23:01:15
    Re: Directly to Datasource or collection for gallery

    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.

  • AARON_C Profile Picture
    2,233 Most Valuable Professional on 30 Nov 2023 at 22:57:28
    Re: Directly to Datasource or collection for gallery

    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 

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.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete