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
A tip for using magical record
Search
Pin-Shih Wang
October 14, 2014
Programming
0
84
A tip for using magical record
Pin-Shih Wang
October 14, 2014
Tweet
Share
More Decks by Pin-Shih Wang
See All by Pin-Shih Wang
iOS Extension
wpsteak
4
440
CI with Git Flow
wpsteak
2
170
Test With Xcode Server
wpsteak
0
50
a lighter reusable cell
wpsteak
0
50
Other Decks in Programming
See All in Programming
Going beyond Apache Parquet's default settings
xhochy
0
120
スキーマ駆動開発による品質とスピードの両立 - 私達は何故、スキーマを書くのか
kentaroutakeda
0
180
Node.js v22 で変わること
yosuke_furukawa
PRO
11
3.9k
PostmanでAPIの動作確認が楽になった話
h455h1
0
180
Micro Frontends for Java Microservices - Utah JUG 2024
mraible
PRO
1
110
Snowflakeで眠ったデータを起こそう!
estie
0
140
Azure OpenAI Serviceのプロンプトエンジニアリング入門
tomokusaba
3
860
Ruby GitHub Packages
bkuhlmann
0
640
Implementing Design Systems in Swift
seyfoyun
1
440
Exploring the Implementation of “t.Run”, “t.Parallel”, and “t.Cleanup”
akarin
1
110
効率化に挑戦してみたらモバイル開発が少し快適になった話
ryunakayama
0
140
Goのエラースタックトレースの歴史と今後
sonatard
10
1.8k
Featured
See All Featured
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
188
16k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
41
4.4k
Building Better People: How to give real-time feedback that sticks.
wjessup
356
18k
Happy Clients
brianwarren
92
6.4k
Atom: Resistance is Futile
akmur
260
25k
Being A Developer After 40
akosma
66
580k
Keith and Marios Guide to Fast Websites
keithpitt
408
22k
How GitHub (no longer) Works
holman
305
140k
How to train your dragon (web standard)
notwaldorf
74
5.2k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
245
20k
Unsuck your backbone
ammeep
663
57k
Building Adaptive Systems
keathley
32
1.9k
Transcript
A tip for using magical record with Core Data Stack
@wpsteak
Persistent Store Coordinator MR_rootSavingContext NSPrivateQueueConcurrencyType Managed Object Context MR_defaultContext NSMainQueueConcurrencyType
Managed Object Context parent context Magical Record
DataManager Access database Persistent Store Coordinator MR_rootSavingContext NSPrivateQueueConcurrencyType Managed Object
Context MR_defaultContext NSMainQueueConcurrencyType Managed Object Context parent context Magical Record Current Architecture
DataManager NSPrivateQueueConcurrencyType MR_rootSavingContext NSMainQueueConcurrencyType MR_defaultContext Magical Record Current Architecture Main
thread Background Thread Operation Database access
DataManager NSPrivateQueueConcurrencyType MR_rootSavingContext NSMainQueueConcurrencyType MR_defaultContext Magical Record UI Block Main
thread Background Thread Operation > 2x Database access
MR_rootSavingContext NSPrivateQueueConcurrencyType Managed Object Context MR_defaultContext NSMainQueueConcurrencyType Managed Object Context
Nested Managed Object Contexts NSPrivateQueueConcurrencyType Managed Object Context Magical Record MR_context Main thread Background Background
MR_rootSavingContext NSPrivateQueueConcurrencyType Managed Object Context MOC Nested Managed Object Contexts
MOC Magical Record Background Main Background MOC
DataManager MOC MOC NSPrivateQueueConcurrencyType MR_rootSavingContext Magical Record Main thread Background
Thread Background
DataManager NSPrivateQueueConcurrencyType MR_rootSavingContext Magical Record Background Thread operation > 2x
Access in background MOC MOC Main thread Background
DataManager NSPrivateQueueConcurrencyType MR_rootSavingContext Magical Record Background Thread UI MOC Main
thread fetch data Database access
End