cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Re: Azure SQL Server database calls takes minutes instead of seconds

Slow SQL calls again today...

dboulet
New Member

Re: Azure SQL Server database calls takes minutes instead of seconds

I highly recommend using Collections instead of direct queries to SQL. That has fixed all of my issues.

 

Hope this helps!

Highlighted
lero Helper I
Helper I

Re: Azure SQL Server database calls takes minutes instead of seconds

The issue is not related with queries and Collections. It's the internal gateway between PowerApps and Azure SQL that slow things down. I only use Collections and my queries used to load them are optimized.

 

Anyway... I hadn't any report from users on my side about slowness. I think the PowerApps/Azure teams figured it out.

Anonymous
Not applicable

Re: Azure SQL Server database calls takes minutes instead of seconds

Thanks, @lero! I will definitely check it out!

nbarsley1 Advocate II
Advocate II

Re: Azure SQL Server database calls takes minutes instead of seconds

Hey Lero, 

What do you mean by your queries are optimized and you only use collections? 

 

Do you mean onstart -> load all necessary data to collections? 

 

Thanks!

lero Helper I
Helper I

Re: Azure SQL Server database calls takes minutes instead of seconds

I mean I apply filters on columns with proper indexing and never load a lot of rows. On average my queries returns no more than 50 rows.

 

To load everything onstart causes the app to spend a long time starting. A best practice is to load ondemand according to screen usage or using the timer component.

 

Most of my loading time is spent on onvisible events and besides that I try not to load a Collection twice unless necessary.

 

 

ChristophM
Frequent Visitor

Re: Azure SQL Server database calls takes minutes instead of seconds

Same problems here. It´s also a frustrating experience to patch a row to the Azure database. Sometimes it needs only 0.2 seconds and then it needs 28 seconds to write a simple row to the Azure database. 

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

Top Solution Authors
Top Kudoed Authors
Users online (6,586)