-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shouldn't run Realm transactions/queries on the UI thread #256
Comments
@am-MongoDB where should the transactions and queries run? |
They should be run in a worker thread |
@Sheeri @am-MongoDB |
If coroutines are the correct way to ensure that slow operations don't block the UI, then yes, let's use them |
@lebedynskyi I am also OK with coroutines. Does that unblock this ticket? |
@Sheeri in General no. We are waiting for native support of Realm SDK |
From review by Realm engineering team:
RealmDataSource run transactions and queries on the UI thread. This could potentially block the UI, and is bad practise when using Sync.
The text was updated successfully, but these errors were encountered: