Skip to content

Commit

Permalink
Changed the saving in migration.
Browse files Browse the repository at this point in the history
  • Loading branch information
drewmccormack committed Jul 11, 2012
1 parent c0bbaa0 commit e5755e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iCloudCoreDataTester/AppDelegate.m
Expand Up @@ -463,10 +463,10 @@ -(void)migrateStoreToCloud
// Note that you can only snip optional relationships, otherwise validation will fail when saving.
[migrator snipRelationship:@"permutations" inEntity:@"Note"];
[migrator snipRelationship:@"permutations" inEntity:@"Facet"];
migrationSucceeded &= [migrator migrateEntityWithName:@"Note" batchSize:100 save:YES error:&error];
migrationSucceeded &= [migrator migrateEntityWithName:@"Note" batchSize:0 save:NO error:&error];

// Migrate the Permutations (and connected MOs) in now. Batch size of 0 is infinite, ie, no batching.
migrationSucceeded &= [migrator migrateEntityWithName:@"Permutation" batchSize:0 save:YES error:&error];
migrationSucceeded &= [migrator migrateEntityWithName:@"Permutation" batchSize:10 save:YES error:&error];

// End migration
[migrator endMigration];
Expand Down

0 comments on commit e5755e8

Please sign in to comment.