iOS CoreData - are there any disadvantages to enabling sqlite WAL / Write-Ahead Logging

后端 未结 2 1773
长情又很酷
长情又很酷 2021-01-30 05:43

At the WWDC 2013 session \'207: What\'s New in Core Data\', they mention that you can enable SQLite WAL by passing an options dictionary when adding a persistent store:

2条回答
  •  时光说笑
    2021-01-30 06:17

    Regarding the bug that occurs with non-lightweight migrations that involve subclassing NSMigrationManager, which I've re-reported to Apple as Bug 16038419.

    I've also made a different, method-swizzling workaround which patches the bug in cases where you always want to use legacy delete/rollback journaling. As I understand it, Pablin's fix is for cases when you want to use WAL except during migrations. Also, you can see that bug occur in this video.

提交回复
热议问题