Closed stee1ix closed 1 month ago
@cristiano-linvix Did this work? I'm having the same issue of UI blocking.
➤ PM Bot commented:
Jira ticket: RJS-2850
So, the reason for my crash was the amount of data I was receiving simultaneously.
I was using websockets to receive data from the backend, but I was receiving data from 10 different tables, and trying to record all of this at the same time.
Application would crash, I implemented better control over this, so I request table by table, save and request a new table.
This solved it for me, I hope it helps you.
I also broke ream.write every 100 records.
@stee1ix
A very large write transaction could block for an unacceptable long time, and as @cristiano-linvix suggests, breaking into smaller transactions can block for short enough time for the UI to update.
Hello, thanks a lot!!! I'll test this, let you know soon.
Originally posted by @cristiano-linvix in https://github.com/realm/realm-js/issues/3709#issuecomment-2072082750