Please provide asynchronous query/update API.
See original GitHub issueCurrently, the API to query(realm.objects('table')) or update(realm.create) documents is synchronous, this will lead to the javascript thread to be blocked.
It is inefficient if the table is big enough.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:7
- Comments:26 (11 by maintainers)
Top Results From Across the Web
Enable Asynchronous API - Salesforce Help
To activate the Asynchronous API feature, please take the following steps: · Have a system administrator to log a Case with Salesforce Support....
Read more >Update an Asynchronous Endpoint - Amazon SageMaker
Update an asynchronous endpoint with the UpdateEndpoint API. When you update an endpoint, SageMaker first provisions and switches to the new endpoint ...
Read more >Supermetrics API - Async queries
By default, a Supermetrics API query is a synchronous request, meaning the HTTP request waits until the query has finished running. This is ......
Read more >Synchronous and asynchronous requests - Web APIs | MDN
XMLHttpRequest supports both synchronous and asynchronous communications. In general, however, asynchronous requests should be preferred to ...
Read more >Write asynchronous DAO queries - Android Developers
One-shot write queries that insert, update, or delete data in the database. One-shot read queries that read data from your database only ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Thank you guys for your help. Now I could increase the performance a bit. Now it takes 20seconds less than before thanks to deleting the Realm file and then create a new instance.
I had to update the Realm config file. The only issue with this that I have to call getRealmInstance every time I want to access to the instance after the resetRealm function called because import loses the instance. Thanks again and sorry for messing up this issue, as at the end it is not really related to the async API.
We’re using
realm-jsfor a new react native project, we haven’t met any practical issue yet, but we’re also looking for an async version of query APIs.I noticed in
rpc.jsit’s opening a syncXMLHttpRequest. Although it’s a local RPC call, but it’s still a network request rather than code execution. IMPO, it’ll be nice to make async request and provide Promise based query APIs. It’s also more intuitive to me since fetching data from server are all async and returning Promises.