Huge Delay Loading From Database in Wappler 6.8.0 c/w Wappler 3.9.7

I checked the page and there is some long running JavaScript blocking the page. Did some debugging and found that there is a flow that does a lot of datastore inserts. With App Connect 2 data changes are directly updated within the DOM and that happens now after each insert and causing the browser to freeze up for some time. In App Connect 1 you didn't have this problem, the DOM was updated with a delay.

To fix the issue you should do the inserts in a batch operation. Add startBatch action before doing inserts and then endBatch when it is finished.

1 Like