Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Introduction to Realm
Search
Nanang Rafsanjani
December 17, 2015
Programming
0
39
Introduction to Realm
Basic introduction about Realm
Nanang Rafsanjani
December 17, 2015
Tweet
Share
More Decks by Nanang Rafsanjani
See All by Nanang Rafsanjani
iOS Architecture & Pattern
jukiginanjar
0
44
Swift - Protocol oriented programming
jukiginanjar
0
740
Other Decks in Programming
See All in Programming
なんでRustの環境構築してないのにRust製のツールが動くの? / Why Do Rust-Based Tools Run Without a Rust Environment?
ssssota
14
46k
Server Side Kotlin Meetup vol.16: 内部動作を理解して ハイパフォーマンスなサーバサイド Kotlin アプリケーションを書こう
ternbusty
3
260
Amazon Verified Permissions実践入門 〜Cedar活用とAppSync導入事例/Practical Introduction to Amazon Verified Permissions
fossamagna
2
100
Things You Thought You Didn’t Need To Care About That Have a Big Impact On Your Job
hollycummins
0
260
Devvox Belgium - Agentic AI Patterns
kdubois
1
150
バッチ処理を「状態の記録」から「事実の記録」へ
panda728
PRO
0
190
品質ワークショップをやってみた
nealle
0
640
iOSでSVG画像を扱う
kishikawakatsumi
0
170
Cursorハンズオン実践!
eltociear
2
1.2k
Migration to Signals, Resource API, and NgRx Signal Store
manfredsteyer
PRO
0
120
Catch Up: Go Style Guide Update
andpad
0
260
開発組織の戦略的な役割と 設計スキル向上の効果
masuda220
PRO
10
1.7k
Featured
See All Featured
The Illustrated Children's Guide to Kubernetes
chrisshort
49
51k
Optimizing for Happiness
mojombo
379
70k
Designing for Performance
lara
610
69k
Typedesign – Prime Four
hannesfritz
42
2.8k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
658
61k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.7k
Rebuilding a faster, lazier Slack
samanthasiow
84
9.2k
A Modern Web Designer's Workflow
chriscoyier
697
190k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
15k
How STYLIGHT went responsive
nonsquared
100
5.9k
The Art of Programming - Codeland 2020
erikaheidi
56
14k
Principles of Awesome APIs and How to Build Them.
keavy
127
17k
Transcript
Introduction to Realm
Available Solutions in iOS • Serialization (JSON/PList) • SQLite •
Core Data
Core Data • It’s not easy to fully understand the
API • Lots of boilerplate code • Passing data between threads is tricky
SQLite • Difficult (c, query language) • Query result need
to mapped to models • Query are very fast • Many third party library
Serialization • Acceptable in small class • Not smart •
Potentially slow • Not thread-safe
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
Realm iOS Benchmark
Realm iOS Benchmark
Realm iOS Benchmark
Basic Realm Object
Realm Configuration
Create Object
Create Object
Adding Object
Update Object
Delete Object
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
Filter NSPredicate cheatsheet
Sorting
Threading
The End