Android-ORM-benchmark icon indicating copy to clipboard operation
Android-ORM-benchmark copied to clipboard

Realm results are incorrect because they assume cache

Open Josh-Allen-ConnectedLab opened this issue 6 years ago • 0 comments

It is not possible to use Realm with cache and still be threadsafe. Therefore it is misleading to put Realms very fast cache read time, when in practice you are going to have to do all multi-threading yourself. The issue comes down to Realm not being able to see changes on other threads. In order to see a transaction committed on another thread you have to close and open the realm connection on that thread (aka read from disk).

Josh-Allen-ConnectedLab avatar Feb 04 '19 17:02 Josh-Allen-ConnectedLab