~/talk

Core Data Migrations: Can we do Better?

Talkat try! Swift NYC 2017 · 2017-09-05..09-06· [ios]
slides:none on file

Shows how Core Data actually migrates: demonstrates a simple lightweight migrations rename, a type-change solved by a custom NSMigrationPolicy transform method, and splitting an attribute into a new entity by overriding createDestinationInstances and tracking created countries to avoid duplicates. Explains manual progressive migration paths between multiple model versions, how to locate or supply an NSMappingModel, and contrasts the work with a schema-free alternative using JSON document storage such as Couchbase Mobile.

AI-written summary · about

  1. 0:00Intro
  2. 2:22Core Data Stack: ios10
  3. 2:47Managed Object Model
  4. 3:09Schema Changes
  5. 3:58Option 1: Delete the app and reinstall
  6. 4:31Option 2: Core Data Migrations
  7. 6:33Lightweight Migrations
  8. 7:16Configure Core Data Stack
  9. 7:34Some help from editor
  10. 7:58Case 2
  11. 9:15Define Custom Mapping
  12. 10:32Case 3
  13. 11:50Custom Migration Policy (3/3)
  14. 15:14Manual
  15. 16:37Testif Migration is Needed
  16. 17:06Migrate Stores Progressively
  17. 17:57Identity Model compatible with Store
  18. 18:14Migrate Store from src to dst model
  19. 18:43Find Mapping Model
  20. 19:16NoSQL Option for Persisting Data
  21. 21:30Data Modeling
  22. 22:39JSON to Native Mapping
  23. 23:54Couchbase Lite
  24. 25:02Resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.