cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
BrianHFASPS
Level 8

Powerapps / SQL performance issue - 4-16 seconds per patch?

I have a patch within a ForAll that today was taking 8-17 seconds per transaction?

Patch(
            '[dbo].[Daily Activity Attendance]',
            First(
                Filter(
                    '[dbo].[Daily Activity Attendance]',
                    DailyAttUID = User_x0020_ID,
                    AttendanceDate_x0020_String = TodayVar
                )
            ),
            {
                ActivityOneSigninTime: Text(
                    Now(),
                    "[$-en-US]hh:mm:ss"
                ),
                ActivityOne: 'Attendance Class Name Dropdown'.Selected.ActivityID
            }
        )

It is not usually this bad, but I don't know what is happening today? This patch tags a time stamp so I have a very good representation of it.

Slow Patch.png.jpg

 

3 REPLIES 3
BrianHFASPS
Level 8

Re: Powerapps / SQL performance issue - 4-16 seconds per patch?

Now a few hours later and same app with same code on same network it is taking about 1 second per patch. This is one of the frustrating things is the inconsistency. This is with Azure SQL server. The only thing on this SQL instance is this app and the SQL is normally below 20% DTU?

Normal Patch.png.jpgSQL Usage Patch.png.jpg

Am I missing something performance wise here?

mogulman
Level 8

Re: Powerapps / SQL performance issue - 4-16 seconds per patch?

I don't know if this applies but there was a recent thread on this.

Community Support Team
Community Support Team

Re: Powerapps / SQL performance issue - 4-16 seconds per patch?

Hi @BrianHFASPS,

I have made a test on my side, and don't have the issue that you mentioned.

I think this issue may be related to the Network bandwidth on your side. Please consider take a try to close other background applications within your machine, then try your formula again, check if the issue has been improved.

Please make sure your Network bandwidth is in a good state.

 

In addition, please also take a try to simplify your Patch formula as below:

Patch(
       '[dbo].[Daily Activity Attendance]',
        LookUp('[dbo].[Daily Activity Attendance]', DailyAttUID = User_x0020_ID && AttendanceDate_x0020_String = TodayVar), /* <-- Modify here */
        {
          ActivityOneSigninTime: Text(Now(), "[$-en-US]hh:mm:ss"),
          ActivityOne: 'Attendance Class Name Dropdown'.Selected.ActivityID
        }
)

 

Best regards,

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 187 members 4,483 guests
Please welcome our newest community members: