Over a million developers have joined DZone.
Platinum Partner

Realm: A Memory-Efficient Mobile Database

· Java Zone

The Java Zone is brought to you in partnership with AppDynamics. Discover how AppDynamics steps in to upgrade your performance game and prevent your enterprise from these top 10 Java performance problems.

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:


The Java Zone is brought to you in partnership with AppDynamics. AppDynamics helps you gain the fundamentals behind application performance, and implement best practices so you can proactively analyze and act on performance problems as they arise, and more specifically with your Java applications. Start a Free Trial.

Topics:

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

{{ parent.tldr }}

{{ parent.urlSource.name }}