You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Luke Driscoll <lu...@gmail.com> on 2012/03/28 13:07:44 UTC

Accessing a document's local_seq

Hi,
is there any way that I can access a document's local_seq without creating
a view for it?

Thanks
Luke

Re: Accessing a document's local_seq

Posted by Luke Driscoll <lu...@gmail.com>.
that's excellent news, thanks

On 28 March 2012 07:18, Paul Davis <pa...@gmail.com> wrote:

> Oops. I'm a moron. Next time I'll grep before responding.
>
> $ curl http://127.0.0.1:5984/bing/bob?local_seq=true
>
> {"_id":"bob","_rev":"1-9424043dd7e8f320dc86b53ad024f58e","key":"va\"lue","_local_seq":1}
>
> On Wed, Mar 28, 2012 at 6:14 AM, Luke Driscoll <lu...@gmail.com>
> wrote:
> > I thought not, scanning the _changes feed is pretty terrifying!
> >
> > On 28 March 2012 07:10, Paul Davis <pa...@gmail.com> wrote:
> >
> >> Obviously, that's without the alternatively horror of scanning
> >> _changes for the doc id. :D
> >>
> >> On Wed, Mar 28, 2012 at 6:10 AM, Paul Davis <
> paul.joseph.davis@gmail.com>
> >> wrote:
> >> > Come to think of it, no I don't think you can.
> >> >
> >> > On Wed, Mar 28, 2012 at 6:07 AM, Luke Driscoll <
> luke.driscoll@gmail.com>
> >> wrote:
> >> >> Hi,
> >> >> is there any way that I can access a document's local_seq without
> >> creating
> >> >> a view for it?
> >> >>
> >> >> Thanks
> >> >> Luke
> >>
>

Re: Accessing a document's local_seq

Posted by Luke Driscoll <lu...@gmail.com>.
Thanks, that's really helpful.

On 28 March 2012 16:55, Jens Alfke <je...@couchbase.com> wrote:

>
> On Mar 28, 2012, at 4:18 AM, Paul Davis wrote:
>
> > Oops. I'm a moron. Next time I'll grep before responding.
> >
> > $ curl http://127.0.0.1:5984/bing/bob?local_seq=true
> >
> {"_id":"bob","_rev":"1-9424043dd7e8f320dc86b53ad024f58e","key":"va\"lue","_local_seq":1}
>
> I’ve just added documentation of this to the wiki:
>        http://wiki.apache.org/couchdb/HTTP_Document_API#Special_Fields
>
> —Jens

Re: Accessing a document's local_seq

Posted by Jens Alfke <je...@couchbase.com>.
On Mar 28, 2012, at 4:18 AM, Paul Davis wrote:

> Oops. I'm a moron. Next time I'll grep before responding.
> 
> $ curl http://127.0.0.1:5984/bing/bob?local_seq=true
> {"_id":"bob","_rev":"1-9424043dd7e8f320dc86b53ad024f58e","key":"va\"lue","_local_seq":1}

I’ve just added documentation of this to the wiki:
	http://wiki.apache.org/couchdb/HTTP_Document_API#Special_Fields

—Jens

Re: Accessing a document's local_seq

Posted by Paul Davis <pa...@gmail.com>.
Oops. I'm a moron. Next time I'll grep before responding.

$ curl http://127.0.0.1:5984/bing/bob?local_seq=true
{"_id":"bob","_rev":"1-9424043dd7e8f320dc86b53ad024f58e","key":"va\"lue","_local_seq":1}

On Wed, Mar 28, 2012 at 6:14 AM, Luke Driscoll <lu...@gmail.com> wrote:
> I thought not, scanning the _changes feed is pretty terrifying!
>
> On 28 March 2012 07:10, Paul Davis <pa...@gmail.com> wrote:
>
>> Obviously, that's without the alternatively horror of scanning
>> _changes for the doc id. :D
>>
>> On Wed, Mar 28, 2012 at 6:10 AM, Paul Davis <pa...@gmail.com>
>> wrote:
>> > Come to think of it, no I don't think you can.
>> >
>> > On Wed, Mar 28, 2012 at 6:07 AM, Luke Driscoll <lu...@gmail.com>
>> wrote:
>> >> Hi,
>> >> is there any way that I can access a document's local_seq without
>> creating
>> >> a view for it?
>> >>
>> >> Thanks
>> >> Luke
>>

Re: Accessing a document's local_seq

Posted by Luke Driscoll <lu...@gmail.com>.
I thought not, scanning the _changes feed is pretty terrifying!

On 28 March 2012 07:10, Paul Davis <pa...@gmail.com> wrote:

> Obviously, that's without the alternatively horror of scanning
> _changes for the doc id. :D
>
> On Wed, Mar 28, 2012 at 6:10 AM, Paul Davis <pa...@gmail.com>
> wrote:
> > Come to think of it, no I don't think you can.
> >
> > On Wed, Mar 28, 2012 at 6:07 AM, Luke Driscoll <lu...@gmail.com>
> wrote:
> >> Hi,
> >> is there any way that I can access a document's local_seq without
> creating
> >> a view for it?
> >>
> >> Thanks
> >> Luke
>

Re: Accessing a document's local_seq

Posted by Paul Davis <pa...@gmail.com>.
Obviously, that's without the alternatively horror of scanning
_changes for the doc id. :D

On Wed, Mar 28, 2012 at 6:10 AM, Paul Davis <pa...@gmail.com> wrote:
> Come to think of it, no I don't think you can.
>
> On Wed, Mar 28, 2012 at 6:07 AM, Luke Driscoll <lu...@gmail.com> wrote:
>> Hi,
>> is there any way that I can access a document's local_seq without creating
>> a view for it?
>>
>> Thanks
>> Luke

Re: Accessing a document's local_seq

Posted by Paul Davis <pa...@gmail.com>.
Come to think of it, no I don't think you can.

On Wed, Mar 28, 2012 at 6:07 AM, Luke Driscoll <lu...@gmail.com> wrote:
> Hi,
> is there any way that I can access a document's local_seq without creating
> a view for it?
>
> Thanks
> Luke