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
secondImage

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

Top Solution Authors
Top Kudoed Authors
Users online (18,936)