cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Responsive Resident
Responsive Resident

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
Responsive Resident
Responsive Resident

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?

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

Community Support
Community Support

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (4,228)