Thanks again for all the prompt responses. One security risk that we are anticipating is that the underlying SQLLite file will get backed up automatically on iCloud.
Is there any way in the REST API to configure for it to be not backed up on iCloud or we need to do it via the native code as given in here *https://github.com/couchbase/couchbase-lite-ios/issues/357* <https://github.com/couchbase/couchbase-lite-ios/issues/357> by using the CBLManager.excludedFromBackup On Monday, May 25, 2015 at 11:16:39 PM UTC+5:30, Jens Alfke wrote: > > On May 25, 2015, at 12:50 AM, gaurav...@gmail.com <javascript:> wrote: > > So basically we want to do sync in native and read via JS/REST APIs from > with in the WebView concurrently. However while the native code is doing > write ; we were not able to read via the REST API/JS via Cordova plugin. > > > SQLite (at least in the way we’re using it) doesn’t support concurrent > writes and reads: an active write transaction blocks reads. But writes and > reads can interleave. You may be having problems because you’re creating > one very long transaction and doing all the work in it. If you need to > support reads at the same time, try using shorter transactions. > > (The iOS 1.1 release, coming in a few days, supports a new storage engine > called ForestDB that doesn’t have this limitation. It allows concurrent > reads and writes. Details are here > <https://github.com/couchbase/couchbase-lite-ios/wiki/ForestDB>.) > > - How to do concurrent read and write with in WebView via REST APIs/JS > ? Is it supported ? So basically if the concurrent native sync and read > via web view does not work than we would want to have concurrent read and > write using JS only ? > > > Since XHRs are async, you can start as many as you want. The underlying > database has the same concurrency limitations as I described above, but the > REST API doesn’t allow you to create arbitrarily long transactions so that > should be less of a problem. > > —Jens > > -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/2a86d27f-d49c-4e4d-b7c7-e58bea9a0bd0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.