cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
swoodsNACoal
New Member

Power app to on prem SQL taking too long to return rows.

My power apps form taking too long to return 25 rows of data.  I need help trouble shooting issue, please contact me or what number can I call for support?

7 REPLIES 7
EricLott
Resident Rockstar
Resident Rockstar

How long is it taking to return the 25 rows to Power Apps?

Is it filtering these rows from a larger data set in Power Apps?

How long does the same data take in SSMS?

it took me 50 seconds to return 16 rows. other times it will take over 1 min.

I forgot to include not filtering talking place and querying to data in SQL is quick.

In SSMS takes about second to retrieve the same number of rows.

Is this true with all data coming through your on-prem gateway or just one specific data set?

Querying our on-prem data thru Power BI no issues.  Only issue we see are thru power apps and DBogunovic who comment earlier is the creator of the power app.

It's hard to say what could be causing the slowness on the Power Apps side. Here is some documentation on tuning the data gateway

https://docs.microsoft.com/en-us/data-integration/gateway/service-gateway-performance

I would suggest enabling the additional logging if you haven't already. Then, pull the rows into Power Apps and look through the logs.

You can also do a SQL trace in the SQL Server Profiler, which I've used to tune some Power Apps query performance. That may not help you a lot unless your data is coming from a view or stored procedure, though.

https://docs.microsoft.com/en-us/sql/tools/sql-server-profiler/sql-server-profiler?view=sql-server-v...

---
If this answered your question, please click "Accept Solution". If this helped, please Thumbs Up.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,746)