We've experienced some slow downs with syncing to the backend. We've pinpointed the error to the upgrade between 5.2.7 and 5.2.8.
When using
ProjectModel.sync()
we've gone from speeds of:
1297 ms to
12582 ms
When creating around 300 events and 300 dependencies. Please note that the response time from out server is around 500 ms in both of these instances.
I've found that in the the class AbstractCrudManagerMixin.js
async internalOnResponse(request, responseText, fetchOptions) {
...
await me.applyResponse(request, response, options); // Line 1147 on 5.2.8
...
}
It seems that the slowdown happens here. Atleast if I put a break point before and after it takes around 10 seconds to hit the second breakpoint. Hope you can help/reproduce.
Would be possible to provide a test case with minimum configuration about how are you creating the events and dependencies? Perhaps creating a custom project based on a demo for us to check and analyze your case and the performance of that ProjectModel.sync() function.
Hey Again. After some tests in our own code it seems that dependencies is not important. It seems to happen when syncing a lot of tasks. I'll see if I can pinpoint it and make a case, cause it does seem like it is something in our code that is not making nice with the 5.2.8 version.