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.
13. 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
15. 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
18. Good practices
★ Avoid premature optimization
★ Have a police for when to use concurrency
★ Really follow 1 & 2
19. Also available now
★ Batch updates (Brent Simmons’ problem)
★ Asynchronous fetching
20. 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
22. 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?