web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Gallery refresh slow
Power Apps
Unanswered

Gallery refresh slow

(1) ShareShare
ReportReport
Posted on by 130

The powerapp has a gallery connected to an Azure SQL DB (using a View) to show "current" records.

 

Each gallery item entry just shows field data but also has a "status" drop down column which has a pre set set of values.

 

When the user selects a status, it "patches" the row and then refreshes the data0set using Refresh([datasource])

 

The actual refresh only seems to take a couple of seconds to execute (I put some timing captures either side) but the actual refresh of the gallery seems to take forever to re-load.... about 30 to 60 seconds, sotimes longer

 

As a quick-fix, I've noticed that if you scroll the gallery, this then forces the redner of the gallery which results in an quicker update.

 

Is there any way I can force the gallery to re-render quicker when the drop-down is changed (the drop-down will remove said item from the gallery, plus others that may have been updated by another user)

 

FYI: The actual loading of the form from fresh seems to load the gallery within a few seconds

 

Thanks.

Categories:
I have the same question (0)
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @BO55VXR,

     

    Could you please share a bit more about your app's configuration?

     

    Please take a try to set the OnChange property of the Drop down control ("status") to following formula:

    Refresh([datasource])

    then check if the issue is solved.

     

    In addition, please check if the Azure SQL View data that you want to display within the Gallery control is too large, the size of the Azure SQL View data would also take effect on the refresh speed of data source.

     

    Please check and see if the following article would help in your scenario:

    https://baizini-it.com/blog/index.php/2017/09/13/powerapps-improving-app-performance/

     

     

    Best regards,

    Kris 

     

  • Chris Hammond Profile Picture
    130 on at

    Hi @v-xida-msft..

     

    When you say "configuration" ... What do you mean?

     

    The main gallery is hooked up to a SQL view which filters for records where a  "Date > GetDate()"  and results in about 1,000 rows ... however there are additional filters added to the  conditions based on drop down selections for "record type"... There is no "Non-delagated query" alert, so everything looks like its done server-side.

     

    So the "Items" property is something like...

     

    SortByColumns(
     Filter('[dbo].[CurrentData]', 
    (Status = ddlStatus.Selected.Value) && ( ( StartsWith(ddlListType.Selected.Value, "Spotlight") && Spotlight ) || ( StartsWith(ddlListType.Selected.Value, "Corporate") && Corporate ) || ( StartsWith(ddlListType.Selected.Value, "Gov") && Government ) )), "Date", Ascending, "Account", Ascending, "Name", Ascending)

    On each gallery item, a few key fields are shown Name, Date, Account, RecordType but there is a "full display" details record that can be viewed by clicking an appropriate button.  There is also a drop down for Status and you can choose from "New", "Processing", "Actioned" 

     

    When the drop-down is changed, the record is "Patched" using the ID of the item directly to the underying table of the view and the, as you have stated, the data set is then Refresh'ed

     

    Now, using a few tricks, the following metrics have been recorded (approx values)

     

    - Initial display from app launch takes about 3 seconds

    - When the status drop down is changed, the underlying record is updated in about 2 seconds

    - The following Refresh takes about 3 seconds

    - The re-display of the gallery then takes another 30-60 seconds... unless you manually scroll the grid.

     

    NB: The code above has been modified to remove sensitive information and is not a direct copy of the view code.. so may have "errors" but the concept is representitive of the actual implementation.

     

    W/R/T to link to "improving performance", I did see this when first looking for a solution to my problem but none of issues appear to be relevant in this case, but I am a novice at Power Apps (but an experienced developer)... 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard