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

Swift Realm korean

Realm
August 25, 2016

Swift Realm korean

Slide for Let'Swift 2016 Korea conference

Realm

August 25, 2016
Tweet

More Decks by Realm

Other Decks in Technology

Transcript

  1. !

  2. Realm is not an ORM
 on top of SQLite
 Realm

    has own C++ core Core Data GreenDAO ORM lite ActiveAndroid are Sqlite based
  3. Traditional ORM must copy 1. Data on disk 2. Read

    from disk 3. Copy raw data into deserialised intermediate
 in-memory representation (allocates memory) 4. Copy intermediate representation into
 language-level in-memory object (allocates memory) 5. Return final object from property access
  4. Realm skips the copy Whole file is memory-mapped & same

    format on disk
 as in-memory 1. Calculate offset of data to read 2. Read from mmapped file 3. Return raw value from property access
  5. ૑դ 1֙زউ Realmীѱ ޖटੌ੉ ੓঻ա? Fine-Grained Notifications Nanosecond Dates Optional

    Properties Swift 2 Swift Playgrounds + REPL Live, Queryable Inverse Relationships Key-Value Observation Predicate Subqueries Results Background Updates Encrypted Realm Debugging ObjC Nullability & Generics tvOS watchOS Improved KVC for Collections Frozen Enumeration Schema Subsets Better Carthage Support RealmCollectionType Realm.Configuration Query Improvements Performance Improvements Memory Overhead Improvements Error Handling Improvements Interprocess Improvements Migrations Class Renaming Skipping Migrations
  6. • Realm ೠҴ ಕ੉झ࠘ ಕ੉૑: facebook.com/realmkr • Realm ೠҴ ಕ੉झ࠘

    Ӓܛ: facebook.com/groups/realmkr • Realm ೠҴ ౟ਤఠ: twitter.com/realmkorea • GitHub: github.com/realm • StackOverflow: stackoverflow.com/questions/tagged/realm • Email: [email protected] 묻펂 &OHMJTITVQQPSU Strong support