Hi,
1. No, not really. Sometimes only the first execution takes very long and every subsequent one is very fast.
- Sometimes the first 2-3 executions take longer
- Sometimes the first one takes longer and the next 2-4 executions are very fast and then there is a slow execution followed by fast executions
- After 5 minutes every execution was fast
- After 10 minutes every execution was fast
2. Hopefully I have understood correctly...in case of fast executions, one execution takes 500 to 1600 ms. This is also the duration my stopwatch logs in code. If the total plugin execution takes 10 000 ms, my code is also slower, but compared to the total duration it is only half (5000 ms). This is mainly due to Azure Function request (1500 - 2000 ms) and writing data to Dataverse tables (2500 - 3000 ms). So, logging the elapsed stopwatch time: up to 5000 ms executing the code, but the total plugin execution takes 10 000 ms
Thanks!