You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Jan Schulz (JIRA)" <ji...@apache.org> on 2011/07/03 16:05:21 UTC

[jira] [Created] (COUCHDB-1211) startkey_docid alone does start with that document id

startkey_docid alone does start with that document id
-----------------------------------------------------

                 Key: COUCHDB-1211
                 URL: https://issues.apache.org/jira/browse/COUCHDB-1211
             Project: CouchDB
          Issue Type: Bug
          Components: HTTP Interface
    Affects Versions: 1.1
         Environment: Windows 7
            Reporter: Jan Schulz
            Priority: Minor


I tried to iterator over a view in steps and tried to use the doc._id as a starting point for the next step:
http://localhost:5984/test3/_design/testdesign/_view/testview?skip=1&startkey_docid=<lastID>&limit=10
with <lastID> as the last already seen ID. The result was that this value wasn't used at all in the results: it always returned the 2-11 (doe to skip)  values and I got a infinitive loop. From the documentation in the wiki I would have expected that the startkey_docid is enought to specify the first entry of the resultset.
It would be nice if you could either clarify the documentation (http://wiki.apache.org/couchdb/HTTP_view_API)  or implement the starting-by-docid feature.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (COUCHDB-1211) startkey_docid alone does start with that document id

Posted by "Jan Schulz (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-1211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13059216#comment-13059216 ] 

Jan Schulz commented on COUCHDB-1211:
-------------------------------------

ok. 

Something like 'only functional with "startkey" present'  would still be nice, so that future user won't fall into the same trap :-)


> startkey_docid alone does start with that document id
> -----------------------------------------------------
>
>                 Key: COUCHDB-1211
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1211
>             Project: CouchDB
>          Issue Type: Bug
>          Components: HTTP Interface
>    Affects Versions: 1.1
>         Environment: Windows 7
>            Reporter: Jan Schulz
>            Priority: Minor
>
> I tried to iterator over a view in steps and tried to use the doc._id as a starting point for the next step:
> http://localhost:5984/test3/_design/testdesign/_view/testview?skip=1&startkey_docid=<lastID>&limit=10
> with <lastID> as the last already seen ID. The result was that this value wasn't used at all in the results: it always returned the 2-11 (doe to skip)  values and I got a infinitive loop. From the documentation in the wiki I would have expected that the startkey_docid is enought to specify the first entry of the resultset.
> It would be nice if you could either clarify the documentation (http://wiki.apache.org/couchdb/HTTP_view_API)  or implement the starting-by-docid feature.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (COUCHDB-1211) startkey_docid alone does start with that document id

Posted by "Robert Newson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-1211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Newson resolved COUCHDB-1211.
------------------------------------

    Resolution: Fixed

Updated wiki page with clarification that these two _docid parameters are only for paginating when startkey/endkey have duplicates.

It is not practical to support starting-by-docid as the view index does not contain an index on that value (the index is [key, doc_id]).

> startkey_docid alone does start with that document id
> -----------------------------------------------------
>
>                 Key: COUCHDB-1211
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1211
>             Project: CouchDB
>          Issue Type: Bug
>          Components: HTTP Interface
>    Affects Versions: 1.1
>         Environment: Windows 7
>            Reporter: Jan Schulz
>            Priority: Minor
>
> I tried to iterator over a view in steps and tried to use the doc._id as a starting point for the next step:
> http://localhost:5984/test3/_design/testdesign/_view/testview?skip=1&startkey_docid=<lastID>&limit=10
> with <lastID> as the last already seen ID. The result was that this value wasn't used at all in the results: it always returned the 2-11 (doe to skip)  values and I got a infinitive loop. From the documentation in the wiki I would have expected that the startkey_docid is enought to specify the first entry of the resultset.
> It would be nice if you could either clarify the documentation (http://wiki.apache.org/couchdb/HTTP_view_API)  or implement the starting-by-docid feature.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira