How to disable WAL journal mode

To disable WAL mode, set the journal_mode to DELETE NSMutableDictionary *pragmaOptions = [NSMutableDictionary dictionary]; [pragmaOptions setObject:@”DELETE” forKey:@”journal_mode”]; NSDictionary *options = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:YES], NSMigratePersistentStoresAutomaticallyOption, [NSNumber numberWithBool:YES], NSInferMappingModelAutomaticallyOption, pragmaOptions, NSSQLitePragmasOption, nil]; [_persistentStoreCoordinator addPersistentStoreWithType:NSSQLiteStoreType configuration:nil URL:storeURL options:options error:&error]

How persistent is localStorage?

Mozilla implements it like cookies: DOM Storage can be cleared via “Tools -> Clear Recent History -> Cookies” when Time range is “Everything” (via nsICookieManager::removeAll) https://developer.mozilla.org/en/DOM/Storage In DOM Storage it is not possible to specify an expiration period for any of your data. All expiration rules are left up to the user. In the case … Read more