SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.
SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.
Successfully reported this slideshow.
Activate your 14 day free trial to unlock unlimited reading.
Talk at the CocoaHeadsNL 20150820
Core Data, a comparison to some competitors, some details about concurrency and their implications on todays applications, and some concerns about the future.
Talk at the CocoaHeadsNL 20150820
Core Data, a comparison to some competitors, some details about concurrency and their implications on todays applications, and some concerns about the future.
12.
Realm: Pros & Cons
★ Born mobile
★ Models in code(PK)
★ Built in encryption
★ Multi-thread &
Multi-process
★ Good performance
★ No delete rules
★ No fine grained
notifications (KVO)
★ No null properties
★ No sync solutions
14.
Android Content
★ Content providers
• Abstract data sources
• Access to data via URI (REST style)
• It can be exported to other apps
• Thread safety via synchronized (or multi-
instance)
★ Content resolver to map authorities to providers
16.
Background
Queue
Main
Queue
Single process approach
★ Context
• Private
• MainQueue
★ Nested contexts
• Save pushes changes to
parent (no I/O)
• Parent saves in the
background
child
MOC
pStore
parent
MOC
17.
Good practices
★ Avoid premature optimization
★ Have a police for when to use concurrency
★ Really follow 1 & 2
18.
Also available now
★ Batch updates (Brent Simmons’ problem)
★ Asynchronous fetching
19.
UIManagedDocument
★ Uses the model in the bundle
★ Async I/O
★ Completion blocks after opening or saving
★ Parent is in background and autosaves
★ Also additional data
21.
Threats
★ Swift
• Introspection is still half baked (@NSManaged)
• Many features of Cocoa depend on the runtime
★ Lack of multi-process capabilities
★ Apple generated doubts:
• Photos using
• Removed from Lister?