> On Jul 3, 2015, at 9:30 AM, atom992 <[email protected]> wrote:
> 
> or what principle should I following on developing view both couchbase server 
> and couchbase Lite? 

The difference between the two is the location of the metadata.

On Couchbase Server, the map function takes a second ‘meta’ parameter, and the 
document ID is meta.id. Meta also has a few other fields like expiration that 
aren’t in Couchbase Lite.

On Couchbase Lite, there is no second parameter, and the document id is 
doc._id. Other metadata fields are _rev (revision ID) and _attachments (binary 
attachment metadata) that aren’t in Couchbase Server.

Other than that the logic of map functions and querying are the same, except 
that Couchbase Couchbase Server defaults to stale=true (which means query 
results are only “eventually consistent” unless you explicitly specify 
stale=false in the query.)

It’s sort of confusing, I know! Both products are descendants of Apache 
CouchDB, but Couchbase Lite stuck more closely to CouchDB, while Couchbase 
Server made a lot of changes to integrate better with its memcached and membase 
heritage.

—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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/BDEC1E34-074A-43F3-9048-7A12CA67D3AD%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to