Android Realm Tutorial.
In this piece we explore Realm database, looking at it’s introduction as well as several examples.
What is Realm database?
It is a relatively new,fast, open source embedded database.
Hence this makes realm an alternative to SQLite and Core Data.
It’s is one of those file-based databases that is quick rising in alternative. This is especially due to the current explosion in mobile apps and app development.
Realm database supports several platforms like:
- Android OS
- React Native
- Desktop applications etc.
It is licensed under Apache license.
Realm was created by Alexander Stigsen together with Bjarne Christiansen under the name TightDB in 2010. They formed a company in 2011 in Y Combinator.
in 2014, they renamed it to Realm. In March 2015, Realm was funded to the tune of about $20 million.
The first version was announced in June 2016.
Why Realm Database?
Realm is a NoSQL soultion. This means it does allow data storage and retrieval that is different from the common tabular relations used in SQL databases. Such databases have become popular for their usage in big data and realtime environments.
Realm has configurable durability. It also allows us to share the same groups of data across multiple processes, but also even multiple devices and clusters.
According to their official website, Realm’s zero-copy design makes it much faster than an ORM(Object Relational Mapper), and often even faster than raw SQLite.