Hello Jens,
How do we tell N1QL to ignore keys that start with "sync" so that we
actually retrieve the last revision of each document?
Does it matter if at document creation, we are assigning specific key
to each document instead of allowing CB to assign a default key (name)? We
don't wee any document starting with "sync".
We appreciate any help,
Sandra
El lunes, 8 de febrero de 2016, 17:44:18 (UTC-6), Jens Alfke escribió:
>
>
> On Feb 8, 2016, at 2:59 PM, Alan Diaz <[email protected] <javascript:>>
> wrote:
>
> hi, i have a question in a project i want to get the last revision of a
> documento via N1QL but i don't know if this is possible.
>
>
> You can query SG’s bucket via N1QL, as long as you
>
> - ignore keys (doc IDs) that start with “sync:” — these are internal
> data, not real documents
> - ignore the “_sync” property of a document, which contains internal
> metadata
> - do NOT make any changes
>
> The remainder of the document is the current revision.
>
> —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/6ae39aed-2014-4f11-a42c-a76975cdde52%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.