Core Data NSPredicate “deleted == NO” does not work as expected

The problem is that you have defined an attribute deleted for your entity. That conflicts with the isDeleted method of NSManagedObject, so you should rename that attribute. The following “experiment” shows that strange things happen if you call your attribute “deleted” (c is a managed object with a custom deleted attribute): // Set custom “deleted” … Read more

Core Data and iOS 7: Different behavior of persistent store

Yes, Apple have changed the default journal mode to WAL for iOS7. You can specify the journal mode by adding the NSSQLitePragmasOption to the options when calling addPersistentStoreWithType:configuration:url:options:error. E.g. to set the previous default mode of DELETE: NSDictionary *options = @{ NSSQLitePragmasOption : @{@”journal_mode” : @”DELETE”} }; In my experience WAL gives better performance, but … Read more