• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Core Data : Opt Out of SQLite WAL is nullified after File > Duplicate ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Core Data : Opt Out of SQLite WAL is nullified after File > Duplicate ?


  • Subject: Core Data : Opt Out of SQLite WAL is nullified after File > Duplicate ?
  • From: Jerry Krinock <email@hidden>
  • Date: Sat, 18 Jan 2014 14:34:46 -0800

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?

Thank,

Jerry

1.  https://devforums.apple.com/message/935226#935226
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.  More info, including how to opt out to the old “rollback” mode, is given here:

https://developer.apple.com/library/ios/releasenotes/DataManagement/WhatsNew_CoreData_iOS/


_______________________________________________

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


  • Follow-Ups:
    • Re: Core Data : Opt Out of SQLite WAL is nullified after File > Duplicate ?
      • From: Sean McBride <email@hidden>
  • Prev by Date: Re: Why does menu item with shift-delete not work?
  • Next by Date: System fonts on iOS 7
  • Previous by thread: Re: Why does menu item with shift-delete not work?
  • Next by thread: Re: Core Data : Opt Out of SQLite WAL is nullified after File > Duplicate ?
  • Index(es):
    • Date
    • Thread