Re: How to get notified when the Sync Gateway refused my docs

2015-07-15 Thread Jens Alfke
On Jul 15, 2015, at 10:27 AM, atom992 yangzijun...@gmail.com wrote: can you give me the link,please? Sure http://developer.couchbase.com/mobile/develop/guides/couchbase-lite/native-api/document/index.html#Understanding%20Conflicts. —Jens -- You received this message because you are

Re: How to get notified when the Sync Gateway refused my docs

2015-07-15 Thread Jens Alfke
On Jul 15, 2015, at 10:02 AM, atom992 yangzijun...@gmail.com wrote: I have the same issue when using couchbaselite-phonegap-plugin(1.1 with SG 1.1,REST API). and at the same time, I also want to know, How should I do on the CBL side. I can accept the sync gateway's doc, but how should I

Re: How to get notified when the Sync Gateway refused my docs

2015-07-15 Thread atom992
Thank you very much.for REST API, I can do the same logic I see. On Thursday, July 16, 2015 at 2:48:31 AM UTC+8, Jens Alfke wrote: On Jul 15, 2015, at 10:27 AM, atom992 yangzi...@gmail.com javascript: wrote: can you give me the link,please? Sure

Re: How to get notified when the Sync Gateway refused my docs

2015-07-15 Thread atom992
On Thursday, July 16, 2015 at 1:11:54 AM UTC+8, Jens Alfke wrote: On Jul 15, 2015, at 10:02 AM, atom992 yangzi...@gmail.com javascript: wrote: I have the same issue when using couchbaselite-phonegap-plugin(1.1 with SG 1.1,REST API). and at the same time, I also want to know, How should

Migrating to ForestDB from SQLite in CBL for iOS

2015-07-15 Thread Brendan Duddridge
I haven't selected ForestDB as my store type because I need encryption. So when ForestDB gets encryption I would like to migrate to it. Will there be a simple way to migrate to ForestDB from an SQLite store? Or will I need to write code that fetches all documents from the existing store and

Re: Migrating to ForestDB from SQLite in CBL for iOS

2015-07-15 Thread Jens Alfke
On Jul 15, 2015, at 1:37 PM, Brendan Duddridge brend...@gmail.com wrote: Will there be a simple way to migrate to ForestDB from an SQLite store? Yes. (The code to do this is already in place, there’s just not a way to trigger it through the API.) Also, in ForestDB, are attachments treated

Re: How to get notified when the Sync Gateway refused my docs

2015-07-15 Thread Jens Alfke
Generally it’s assumed that the app and server should agree on validation, so that the app cannot produce a revision that the server rejects. In other words, the validation done by the server is to mostly protect against malicious clients trying to send bad data, and also to guard against bugs

Re: How to disable notify changes ([CBLDatabase(Internal) notifyChanges:])?

2015-07-15 Thread Jens Alfke
On Jul 15, 2015, at 6:48 AM, Daniel Sonny Agliardi dany...@gmail.com wrote: I was analyzing performances of my app with Instruments and i noticed that a method needs a lot time to be completed, this method is [CBLDatabase(Internal) notifyChanges:] (see the attached photo below). In

Re: ForestDb

2015-07-15 Thread Jens Alfke
On Jul 15, 2015, at 2:49 AM, Raj Shekhar rajshekha...@gmail.com wrote: CBLManager *mgr=[CBLManager sharedInstance]; mgr.storageType=@ForestDB -(Property StorageType is not found on CBLManger). Oops, it looks like I forgot to move the declaration of the storageType property into the