Pergunta

I'm wondering what is default state of autocommmit in iOS Core Data and if it's possible to change it. I couldn't find any mentions in official documentation. On SO I've found only this It's said, that native sqlite framework has low-level function to determine the state of autocommit. Maybe it's possible to improve a performance by unsetting autocommit if it's set by default?

Foi útil?

Solução

Core Data does not have auto-commit. You must save your context. Now, if you are using UIManagedDocument, it's different... because it does have auto-save, but you still have to tell it that it has dirty data so it knows to auto-save.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top