Thank you very much. and I want to know that: Is this function be the correct usage ? If I want to sort by *create_time* and using paging , what should I do?
On Saturday, July 4, 2015 at 1:06:46 AM UTC+8, Jens Alfke wrote: > > > On Jul 3, 2015, at 9:30 AM, atom992 <[email protected] <javascript:>> > 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/9015ceb3-2962-4ff5-9636-fe9749b0de9f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
