Re: Core Data : Opt Out of SQLite WAL is nullified after File > Duplicate ?
Re: Core Data : Opt Out of SQLite WAL is nullified after File > Duplicate ?
- Subject: Re: Core Data : Opt Out of SQLite WAL is nullified after File > Duplicate ?
- From: Sean McBride <email@hidden>
- Date: Mon, 20 Jan 2014 12:50:28 -0500
- Organization: Rogue Research Inc.
On Sat, 18 Jan 2014 14:34:46 -0800, Jerry Krinock said:
>In a post today in the Developer Forums [1], developer Romain Piveteau
>mentioned in discussing another topic that, in a Core Data app, he “can
>not disable journaling mode” (by which I presume he means that setting
>the journaling mode to the legacy “rollback” mode [2] is ineffective)
>when the user duplicates the document.
>
>Since I've occasionally seen -shm and -wal files in testing my Core Data
>app recently, I tested his assertion and have apparently verified it.
>My app has opted to use the legacy “rollback” mode, and it does not
>ordinarily produce -shm nor -wal files. However, when I click in the
>menu: File > Duplicate, I get not one but three new files, including -
>shm and -wal files. They disappear when the document is closed and
>reopened, but the -shm file immediately reappears.
>
>Seems like a bug. Has anyone else looked into this yet?
I opt out of WAL in configurePersistentStoreCoordinatorForURL:ofType:modelConfiguration:storeOptions:error:, but my official buildbot is not actually linking against the 10.9 SDK yet, so my experience may not count for much. I also don't use App Sandbox. I haven't seen any problems with my opt out, but have not looked very closely for any. NSPersistentDocument is in such an abismal state, that what you describe is not at all surprising.
>2. For Core Data apps linked with the Mac OS X 10.9, iOS 7 or later
>SDK, by default, SQLite stores use SQLite’s newer “write ahead log”
>journal mode instead of the old “rollback” journal mode. This is
>problematic for older Mac apps whose users expect that an unpackaged
>document (SQLite) file is moveable and copiable.
I don't get your comment here. You don't think users of newer OS X versions expect to be able to move documents around?
Cheers,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden