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
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
360
FindyにおけるTakumi活用と脆弱性管理のこれから
rvirus0817
0
510
ProxyによるWindow間RPC機構の構築
syumai
3
1.2k
@Environment(\.keyPath)那么好我不允许你们不知道! / atEnvironment keyPath is so good and you should know it!
lovee
0
120
実用的なGOCACHEPROG実装をするために / golang.tokyo #40
mazrean
1
270
アセットのコンパイルについて
ojun9
0
120
Namespace and Its Future
tagomoris
6
700
奥深くて厄介な「改行」と仲良くなる20分
oguemon
1
520
プロパティベーステストによるUIテスト: LLMによるプロパティ定義生成でエッジケースを捉える
tetta_pdnt
0
320
AIを活用し、今後に備えるための技術知識 / Basic Knowledge to Utilize AI
kishida
22
5.7k
RDoc meets YARD
okuramasafumi
4
170
rage against annotate_predecessor
junk0612
0
170
Featured
See All Featured
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
VelocityConf: Rendering Performance Case Studies
addyosmani
332
24k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.4k
Context Engineering - Making Every Token Count
addyosmani
2
41
Imperfection Machines: The Place of Print at Facebook
scottboms
268
13k
Site-Speed That Sticks
csswizardry
10
810
Writing Fast Ruby
sferik
628
62k
Code Review Best Practice
trishagee
70
19k
Facilitating Awesome Meetings
lara
55
6.5k
4 Signs Your Business is Dying
shpigford
184
22k
A Modern Web Designer's Workflow
chriscoyier
696
190k
GitHub's CSS Performance
jonrohan
1032
460k
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