Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Realm: A Memory-Efficient Mobile Database

DZone's Guide to

Realm: A Memory-Efficient Mobile Database

· Java Zone
Free Resource

Learn how to troubleshoot and diagnose some of the most common performance issues in Java today. Brought to you in partnership with AppDynamics.

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:


Understand the needs and benefits around implementing the right monitoring solution for a growing containerized market. Brought to you in partnership with AppDynamics.

Topics:

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}