Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Introduction to Realm

Introduction to Realm

Basic introduction about Realm

Avatar for Nanang Rafsanjani

Nanang Rafsanjani

December 17, 2015
Tweet

More Decks by Nanang Rafsanjani

Other Decks in Programming

Transcript

  1. Core Data • It’s not easy to fully understand the

    API • Lots of boilerplate code • Passing data between threads is tricky
  2. SQLite • Difficult (c, query language) • Query result need

    to mapped to models • Query are very fast • Many third party library
  3. Realm • An open source (ish) database framework • A

    complete replacement for Core Data/ SQLite • Implemented from scratch • Fast, simple API, thread safe • Cross platform (Mac, iOS, Android) • Free
  4. Query • Queries return RLMResults instance • Data is only

    read when the properties are accesssed • Results to a query are not copies • The most basic method for retrieving objects