cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Patron
Post Patron

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
Highlighted
Post Patron
Post Patron

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?

Skilled Sharer
Skilled Sharer

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.

Highlighted
Community Support
Community Support

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
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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