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
140
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
480
CI with Git Flow
wpsteak
2
260
Test With Xcode Server
wpsteak
0
110
a lighter reusable cell
wpsteak
0
80
Other Decks in Programming
See All in Programming
Oxlint JS plugins
kazupon
1
1.2k
Go 1.26でのsliceのメモリアロケーション最適化 / Go 1.26 リリースパーティ #go126party
mazrean
1
330
「ブロックテーマでは再現できない」は本当か?
inc2734
0
1.1k
SourceGeneratorのマーカー属性問題について
htkym
0
120
Railsの気持ちを考えながらコントローラとビューを整頓する/tidying-rails-controllers-and-views-as-rails-think
moro
4
370
15年目のiOSアプリを1から作り直す技術
teakun
0
580
AI活用のコスパを最大化する方法
ochtum
0
120
AI駆動開発の本音 〜Claude Code並列開発で見えたエンジニアの新しい役割〜
hisuzuya
4
460
RubyとGoでゼロから作る証券システム: 高信頼性が求められるシステムのコードの外側にある設計と運用のリアル
free_world21
0
170
コーディングルールの鮮度を保ちたい / keep-fresh-go-internal-conventions
handlename
0
140
米国のサイバーセキュリティタイムラインと見る Goの暗号パッケージの進化
tomtwinkle
1
370
Event Storming
hschwentner
3
1.3k
Featured
See All Featured
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
620
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
64
So, you think you're a good person
axbom
PRO
2
1.9k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
400
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.6k
How GitHub (no longer) Works
holman
316
140k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
New Earth Scene 8
popppiees
1
1.7k
Navigating Team Friction
lara
192
16k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
1
140
Building Flexible Design Systems
yeseniaperezcruz
330
40k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
140
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