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
Swift Realm korean
Search
Realm
August 25, 2016
Technology
0
3.3k
Swift Realm korean
Slide for Let'Swift 2016 Korea conference
Realm
August 25, 2016
Tweet
Share
More Decks by Realm
See All by Realm
WWDC 2017 Review
realm
0
2.1k
Xcode shortcuts
realm
0
4.7k
Self Branding with GitHub
realm
0
4.3k
Realm Mobile Platform overview and demo
realm
0
2k
Realm advanced topics and demo
realm
0
2k
Realm introduction Seoul meetup 10
realm
0
2.1k
Stuart Hall: How I got 2.3 Million App Downloads
realm
0
1.9k
James Majors: What the Swiftly Func?
realm
1
4.3k
Simina Pasat: Continuous everything for iOS apps
realm
0
620
Other Decks in Technology
See All in Technology
伴走から自律へ: 形式知へと導くSREイネーブリングによる プロダクトチームの信頼性オーナーシップ向上 / SRE NEXT 2025
visional_engineering_and_design
3
460
安定した基盤システムのためのライブラリ選定
kakehashi
PRO
3
130
TLSから見るSREの未来
atpons
2
310
cdk initで生成されるあのファイル達は何なのか/cdk-init-generated-files
tomoki10
1
670
american aa airlines®️ USA Contact Numbers: Complete 2025 Support Guide
aaguide
0
500
本当にわかりやすいAIエージェント入門
segavvy
1
340
Copilot coding agentにベットしたいCTOが開発組織で取り組んだこと / GitHub Copilot coding agent in Team
tnir
0
190
データ戦略部門 紹介資料
sansan33
PRO
1
3.3k
今だから言えるセキュリティLT_Wordpress5.7.2未満を一斉アップデートせよ
cuebic9bic
2
170
AWS 怖い話 WAF編 @fillz_noh #AWSStartup #AWSStartup_Kansai
fillznoh
0
130
CDKコード品質UP!ナイスな自作コンストラクタを作るための便利インターフェース
harukasakihara
2
230
CDK Vibe Coding Fes
tomoki10
1
630
Featured
See All Featured
4 Signs Your Business is Dying
shpigford
184
22k
Making Projects Easy
brettharned
116
6.3k
GraphQLとの向き合い方2022年版
quramy
49
14k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
31
1.3k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
The Cult of Friendly URLs
andyhume
79
6.5k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
181
54k
The Cost Of JavaScript in 2023
addyosmani
51
8.6k
Code Reviewing Like a Champion
maltzj
524
40k
Agile that works and the tools we love
rasmusluckow
329
21k
Transcript
ݽ߄ੌ ؘఠ߬झ CodeLab
Minwoo Park߅ @tebica *OD
None
Core Data ॳࣁਃ?
There is no such thing as a free lunch ..
ॳӝ औҊ زࣘبо ࡅܰҊ নೠ ӝמਸ ઁҕೞҊ য়ࣗझݶࢲ ޖܐੋ
Swift ݽ߄ੌ ؘఠ߬झ
Swift ?
졶짢핊섾핂쩮핂큲42-JUF$PSF%BUB읊샎 찮읆콛솒 쭎믾쁳 퀺풂칺푷 [FSPDPQZ 짆묻킲읺쨆읺큲펓 짆묻 셂잖 훊 솓핊
폏묻 묻 훟묻 핊쫆 폲콚큲 줂욚 IUUQSFBMNJPLS
Mobile DB World
SQLite ୌೞ Mobile DB World
2014֙ 7ਘ 15ੌ ҕѐ
2 ֙ դ Ә, न Realmਸ ॳҊ
!
*T
None
Realm [relm] ۬ http://endic.naver.com/enkrEntry.nhn? sLn=kr&entryId=57e330e64f644ffda62f545eb1ed4bbe
Realm is not an ORM on top of SQLite Realm
has own C++ core Core Data GreenDAO ORM lite ActiveAndroid are Sqlite based
C++ core: cross platform
Why Realm?
1. Fast 2. Easy to use 3. Features
Fast
http://static.realm.io/downloads/java/android-benchmark.zip
None
memory mapped file Zero-copy
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
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
Results ز সؘ
Easy to use
рѾೠ ٘
নೠ ௪ܻ + Chaining ௪ܻ
Sorting
Relation
Blocking write Non-blocking read Thread safety
Features for mobile developers
In-memory Realm
AES-256+SHA2 by 64-byte encryption key Encryption
ݣ౭ Threadীࢲ Realm ࢎਊೞӝ ˖펺얺큲엖슪읊멆맧픎3FBMN핆큲큲읊뫃퓮쿦펔삲 ˖팒줂쌚빦믆킪헞픦큲뺓컅섾핂읊짦몮 삲읆큲엖슪펞컪섾핂많쪎몋쇦펖쁢힎읊먿헣푢펔핂 캏핊뫎쇪섾핂읊쫊쿦핖킃삖삲
Realm backgroundীࢲ সؘ غਸٸ UI Thread ীࢲ ঌܿ ߉Ҋ रযਃ!
& fine-grained notification Notification
Browser
CSV Converter
String & Data upto 16MB
None
.JHSBUJPO %FCVHHJOH .VMUJQMF%#
And..
https://github.com/realm/ Open source
Issue on Github
PR on Github
Work with community
Growing fast
None
դ 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
Already compatible with Swift 3 & Xcode 8 https://github.com/realm/realm-cocoa/issues/3796
Facebook Community
Realm, Swift झ
• 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
None
Want to be the default choice for iOS/Android
Swift ۽ ॻৈҊ Swift ܳ ਗೞҊח Swift ֎౭࠳ ؘఠ߬झ ޛۿ
Objective-C ب ਗ೧ਃ~
Made by great developers
For great developers
ݽ߄ੌ ѐߊ ҕ ब
Thank you Minwoo Park
[email protected]
www.realm.io/kr @realmkorea