PL-600 · Question #148
You are a Microsoft Power Platform architect supporting the go live phase of a canvas app. The canvas app accesses data on premises and in the cloud. Users are reporting the app is very slow to…
The correct answer is A. Move data calls from the OnStart event to the OnLoad event. D. Review the settings of the data gateway for on-premises data sources. E. Reduce data row limits. To optimize a slow canvas app that accesses both on-premises and cloud data, especially at launch, move data calls from OnStart to OnVisible, review data gateway settings, and reduce data row limits.
Question
Options
- AMove data calls from the OnStart event to the OnLoad event.
- BMove data calls from the OnLoad event to the OnStart event.
- CIncrease data row limits.
- DReview the settings of the data gateway for on-premises data sources.
- EReduce data row limits.
How the community answered
(35 responses)- A74% (26)
- B9% (3)
- C17% (6)
Why each option
To optimize a slow canvas app that accesses both on-premises and cloud data, especially at launch, move data calls from OnStart to OnVisible, review data gateway settings, and reduce data row limits.
Moving data calls from the App.OnStart event to screen-specific events (like Screen.OnVisible) defers data loading until a user navigates to a screen, significantly speeding up the app's initial launch time.
Moving data calls to the OnStart event (which executes once when the app begins) would cause all data to load upfront, increasing the app's initial launch time and making it slower to respond.
Increasing data row limits would fetch more data than necessary, exacerbating performance issues by increasing data transfer and processing overhead, making the app slower rather than faster.
Optimizing the settings of the data gateway, which connects Power Apps to on-premises data sources, can reduce latency and improve the speed of data retrieval, directly impacting app performance.
Reducing data row limits (e.g., by delegating filtering/sorting to the data source) minimizes the amount of data transferred and processed by the app, which improves loading times and overall responsiveness, especially for initial launches.
Concept tested: Canvas app performance optimization (initial load, data handling)
Source: https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/performance-tips
Topics
Community Discussion
No community discussion yet for this question.