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.
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?
Am I missing something performance wise here?
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,
User | Count |
---|---|
236 | |
112 | |
94 | |
59 | |
31 |
User | Count |
---|---|
289 | |
130 | |
104 | |
62 | |
58 |