My apologies for missing the update on the thread here.  For what it's
worth, most of the community discussion has moved to forums.couchbase.com.

Recently Jens from the mobile team answered this question in another
group.  The answer is yes with some additional details you can see in that
posting
<https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/mobile-couchbase/2JvX3pl1Jds/GTwA153gBAAJ>
.

Shadow buckets are discouraged at this point.

The team is definitely looking to make this simpler in the future.

On Mon, Feb 8, 2016 at 6:34 PM Sandra Bazan <[email protected]> wrote:

> Hello Pradip, I work with Victor, and no, we have not received any answer
>  :(   the only solution we know to this issue is to use shadow bucket, we
> thought that with the usage of the new SDK we would be able to get rid of
> the shadow bucket. But unfortunately, it seems this won't be possilble.
>
> Sandra
>
>
> El jueves, 7 de enero de 2016, 12:43:08 (UTC-6), Pradip Vaghasiya escribió:
>>
>> Hi Victor, Did you get the answer of whether N1QL query on sync gateway
>> bucket is allowed?
>>
>> On Wednesday, 1 April 2015 19:34:33 UTC+1, Victor Fernandez wrote:
>>>
>>> Hi Matt
>>> Do you know if there is possible to querying directly to the bucket used
>>> by the sync gateway in this new version of N1QL (DP4)?
>>> Because, I have some synchronizing issues between this bucket and the
>>> shadow bucket, after several time I got discrepancies
>>>
>>>
>>>
>>> El martes, 30 de septiembre de 2014, 12:34:03 (UTC-5), Matt Ingenthron
>>> escribió:
>>>>
>>>> Hi Victor,
>>>>
>>>> You should not be directly querying the bucket used by sync gateway.
>>>> The intent, at the moment, is that you use the bucket shadowing
>>>> <http://developer.couchbase.com/mobile/develop/guides/sync-gateway/wcbs/bucket-shadowing/index.html>
>>>>  functionality
>>>> there to shadow it to another bucket, and then you can query from there
>>>> with N1QL.
>>>>
>>>> Then you’ll have only one version, as determined by SyncGateway, in the
>>>> shadow.
>>>>
>>>> Thanks,
>>>>
>>>> Matt
>>>>
>>>> On Sep 30, 2014, at 7:51 AM, Victor Fernandez <[email protected]>
>>>> wrote:
>>>>
>>>> Yes Gerald for example I have a document named user::vfernandez. This
>>>> doc have two fields age and name, if I modify this document through the
>>>> sync gateway another version of the same document it's created. When I do
>>>> the select with NIQL, this process returns me the first version of the
>>>> document (when it was created) and the second version (after this was
>>>> modified). I only need the last revision
>>>>
>>>> El martes, 30 de septiembre de 2014 09:38:49 UTC-5, Gerald escribió:
>>>>>
>>>>> Hi Victor,
>>>>>
>>>>> How is it that you are getting multiple versions? What versions were
>>>>> you referring to in your original posting?
>>>>>
>>>>> Also, how do you know that it is multiple versions of the same
>>>>> document, as opposed to separate documents?
>>>>>
>>>>> On Tue, Sep 30, 2014 at 7:30 AM, Victor Fernandez <
>>>>> [email protected]> wrote:
>>>>>
>>>>>> Hi Gerald, this version field is from Metadata? or  your suggestion
>>>>>> is to add a field for versions?
>>>>>>
>>>>>> El martes, 30 de septiembre de 2014 09:28:26 UTC-5, Gerald escribió:
>>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> If you have a version field, you can do something like:
>>>>>>>
>>>>>>> select *
>>>>>>> from my-bucket
>>>>>>> where ...
>>>>>>> order by version desc
>>>>>>> limit 1
>>>>>>>
>>>>>>> On Monday, September 29, 2014 3:23:52 PM UTC-7, Victor Fernandez
>>>>>>> wrote:
>>>>>>>>
>>>>>>>> Hi I have the N1QL process running in my couchbase server, I'm
>>>>>>>> making REST petitions to make the querys but the problem is that te 
>>>>>>>> query
>>>>>>>> returns all the versions of a document. I only need the latest 
>>>>>>>> version, is
>>>>>>>> there a way to do this?
>>>>>>>>
>>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to a topic in
>>>>>> the Google Groups "Couchbase" group.
>>>>>> To unsubscribe from this topic, visit
>>>>>> https://groups.google.com/d/topic/couchbase/uivm95SLkFE/unsubscribe.
>>>>>> To unsubscribe from this group and all its topics, send an email to
>>>>>> [email protected].
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>>
>>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Couchbase" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>>
>>>> --
> You received this message because you are subscribed to the Google Groups
> "Couchbase" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to