AndroidDatabaseLibraryComparison icon indicating copy to clipboard operation
AndroidDatabaseLibraryComparison copied to clipboard

Add Realm comparison

Open rkrater opened this issue 8 years ago • 2 comments

Great information but would like to see how realm.io compares

rkrater avatar Dec 11 '15 16:12 rkrater

+1 even though it's not using sqlite internally.

Aditionally I would publish that Raizlabs is the owner/maintainer of DBFlow (which IMHO the winner) - just for the completeness

meierjan avatar Jun 30 '16 13:06 meierjan

Did you look at the graphs? DBFlow is not always the winner. But as for Realm this is a comparison of SQLite libs.

Realm will be much faster in these cases since the library keeps a pointer to rows in their internal structures when you reference realmobjects. What this means as it skirts the conversion of objects into copies of the data. Rather getting a value from an object, it does a direct query on the row the object points to. So when loading its "faster", but really what it's doing is pointing to the rows in the form of stub objects and you still need to load the data. The next bit is you can't pass these objects around threads and I need to do another comparison, but saving/inserting isn't really all that much faster than SQLite. :)

agrosner avatar Jun 30 '16 17:06 agrosner