Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Core Data Migrations - Can We Do Better?

try! Swift Conference via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore Core Data migration strategies and a NoSQL alternative in this 25-minute conference talk from try! Swift NYC 2017. Dive into lightweight and custom migration techniques for handling database schema changes in Core Data. Learn about the challenges of data migrations and discover how NoSQL databases, specifically Couchbase Mobile, can eliminate the need for data models and simplify the migration process. Gain insights from speaker Priya Rajagopal, a Mobile Developer Advocate, as she walks through practical examples and provides a comprehensive overview of database migration options for Swift developers.

Syllabus

Intro
Core Data Stack: ios10
Managed Object Model
Schema Changes
The Dreaded Persistent Store / Data Model Mismatch Exception
Option 1: Delete the app and reinstall
Option 2: Core Data Migrations
Lightweight Migrations
Configure Core Data Stack
Some help from editor
Case 2
Define Custom Mapping
Case 3
Custom Migration Policy (3/3)
Manual
Testif Migration is Needed
Migrate Stores Progressively
Identity Model compatible with Store
Migrate Store from src to dst model
Find Mapping Model
NoSQL Option for Persisting Data
Data Modeling
JSON to Native Mapping
NoSQL: Example 2
Couchbase Lite
Resources

Taught by

try! Swift Conference

Reviews

Start your review of Core Data Migrations - Can We Do Better?

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.