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
120
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
460
CI with Git Flow
wpsteak
2
220
Test With Xcode Server
wpsteak
0
69
a lighter reusable cell
wpsteak
0
57
Other Decks in Programming
See All in Programming
Reactive Thinking with Signals, Resource API, and httpResource @Devm.io Angular 20 Launch Party
manfredsteyer
PRO
0
120
TypeScript Language Service Plugin で CSS Modules の開発体験を改善する
mizdra
PRO
3
2.1k
Agent Rules as Domain Parser
yodakeisuke
1
200
Design Pressure
hynek
0
1.4k
コードに語らせよう――自己ドキュメント化が内包する楽しさについて / Let the Code Speak
nrslib
5
680
ユーザーにサブドメインの ECサイトを提供したい (あるいは) 2026年函館で一番熱くなるかもしれない言語の話
uvb_76
0
160
AI Coding Agent Enablement in TypeScript
yukukotani
15
6.2k
rbs-traceを使ってWEARで型生成を試してみた After RubyKaigi 2025〜ZOZO、ファインディ、ピクシブ〜 / tried rbs-trace on WEAR
oyamakei
0
500
TypeScriptのmoduleオプションを改めて整理する
bicstone
4
400
TSConfig Solution Style & subpath imports to switch types on a per-file basis
maminami373
1
160
PT AI без купюр
v0lka
0
160
What Spring Developers Should Know About Jakarta EE
ivargrimstad
1
440
Featured
See All Featured
Speed Design
sergeychernyshev
30
960
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
45
7.3k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Into the Great Unknown - MozCon
thekraken
38
1.8k
Gamification - CAS2011
davidbonilla
81
5.3k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
26k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.5k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
19
1.2k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
32
2.3k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
8
740
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
123
52k
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