Closed X-Herman closed 5 months ago
Hi @X-Herman. The findLatest
is used to look up the most recent version of an older object. Since you are already querying the most recent version of the realm (by having the query
inside your write
), you don't have to use findLatest
in your case. Could you try to eliminate that and see if that improves your use case?
I've tried it when I'm not using findLatest, and the write speed time is almost the same. I've found that it should be the write frequency, about 50 writes per second
How frequently does the bug occur?
Always
Description
The version of realm I'm currently using is io.realm.kotlin:library-base:1.8.0, which can be tricky when I want to update the local list data to the status field. Here is my code and test results
Database queries are fast, almost 1ms, but proceed
This operation will take more than 5s, is there any way to batch update data to improve performance
Stacktrace & log output
No response
Can you reproduce the bug?
Always
Reproduction Steps
No response
Version
1.8.0
What Atlas App Services are you using?
Local Database only
Are you using encryption?
Yes
Platform OS and version(s)
android 13
Build environment
Android Studio version: ... Android Build Tools version: ... Gradle version: ...