Update database in background thread

41 views
Skip to first unread message

Rustam Yuzmukhametov

unread,
Aug 18, 2014, 10:54:28 AM8/18/14
to mobile-c...@googlegroups.com
I want update some documents when my application becomes background. 
For it I use method "beginBackgroundTaskWithExpirationHandler". 
Is it safety to change my database in background thread although the database was created in main thread? 
Can I read from database using CBLQuery in background?

Jens Alfke

unread,
Aug 18, 2014, 12:19:11 PM8/18/14
to mobile-c...@googlegroups.com

On Aug 18, 2014, at 7:54 AM, Rustam Yuzmukhametov <ryuzmuk...@gmail.com> wrote:

Is it safety to change my database in background thread although the database was created in main thread? 

Reply all
Reply to author
Forward
0 new messages