문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top