Platinum Partner
java,sql,mobile,tips and tricks,tools & methods,ios,realm

Realm: A Memory-Efficient Mobile Database

If you're a mobile developer looking for a database that won't crush devices more thoroughly than Play Services 5.0, SQLite isn't the only option anymore. Now there's Realm, currently available for iOS (and Android, soon). It runs in phones, tablets, wearables, and so on, and aims to improve performance by maintaining a small footprint.

According to the homepage, Realm gets some performance boost largely from efficient use of memory:

...a custom C++ core is used to provide memory-efficient access to your data by using Realm objects, which usually consume less RAM than native objects. The core also provides an optional persistence layer that can automatically save and retrieve your objects from disk.

In particular, Realm claims performance advantages over SQLite - I haven't seen any benchmarks yet, so it's hard to say, but an interesting possibility nonetheless. They also describe it as offering easy queries and persistence, thread-safety, and easy-to-understand Realm objects, among other things. Take a look at the intro video for more details:


{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}