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

Double writes in Realm

Open bmunkholm opened this issue 8 years ago • 0 comments

Hi, In your write test for Realm you should delete ´´´realm.copyToRealm(o)´´´ to avoid doubling the object. You already created the object with ´´´createObject()´´´. That should make a big difference with Realms write speed :-)

PS: You are comparing with an in-memory representation. Seems a bit odd since all the DB's are persisting to disk. But if you just want to compare without disk overhead, you can also run Realm in-memory.

bmunkholm avatar Apr 17 '16 09:04 bmunkholm