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
整頓のジレンマとの戦い〜Tidy First?で振り返る事業とキャリアの歩み〜/Fighting the tidiness dilemma〜Business and Career Milestones Reflected on in Tidy First?〜
bitkey
2
16k
ゼロからはじめる採用広報
yutadayo
3
920
SaaS型なのに自由度の高い本格CMSでサイト構築と運用のコスパ&タイパUP! MovableType.net の便利機能とユーザー事例のご紹介
masakah
0
110
SmartNewsにおける 1000+ノード規模 K8s基盤 でのコスト最適化 – Spot・Gravitonの大規模導入への挑戦
vsanna2
0
130
AIの全社活用を推進するための安全なレールを敷いた話
shoheimitani
2
510
【5分でわかる】セーフィー エンジニア向け会社紹介
safie_recruit
0
27k
CDKTFについてざっくり理解する!!~CloudFormationからCDKTFへ変換するツールも作ってみた~
masakiokuda
1
140
Zero Data Loss Autonomous Recovery Service サービス概要
oracle4engineer
PRO
2
7.7k
Sansanのデータプロダクトマネジメントのアプローチ
sansantech
PRO
0
150
AI専用のリンターを作る #yumemi_patch
bengo4com
5
4.3k
CRE Camp #1 エンジニアリングを民主化するCREチームでありたい話
mntsq
1
120
20250707-AI活用の個人差を埋めるチームづくり
shnjtk
4
3.8k
Featured
See All Featured
Typedesign – Prime Four
hannesfritz
42
2.7k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
32
2.4k
The Invisible Side of Design
smashingmag
301
51k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
331
22k
Art, The Web, and Tiny UX
lynnandtonic
299
21k
How STYLIGHT went responsive
nonsquared
100
5.6k
Docker and Python
trallard
44
3.5k
Speed Design
sergeychernyshev
32
1k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
7
740
Raft: Consensus for Rubyists
vanstee
140
7k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
31
1.3k
The Pragmatic Product Professional
lauravandoore
35
6.7k
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