couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Carey <paul.p.ca...@gmail.com>
Subject startkey exclusive for _all_docs_by_seq
Date Wed, 20 May 2009 08:39:47 GMT
Hi

I just noticed that startkey is exclusive when applied against
_all_docs_by_seq but inclusive for all other queries. Is this
intentional?

Thanks

Paul

====

09:25 : ~ $ curl -X PUT localhost:5984/sk_test
{"ok":true}
09:28 : ~ $ curl -X PUT -d '{"_id":"1"}' localhost:5984/sk_test/1
{"ok":true,"id":"1","rev":"1-1347026183"}
09:28 : ~ $ curl -X GET localhost:5984/sk_test
{"db_name":"sk_test","doc_count":1,"doc_del_count":0,"update_seq":1,"purge_seq":0,"compact_running":false,"disk_size":14271,"instance_start_time":"1242808117550098"}
09:29 : ~ $ curl -X GET 'localhost:5984/sk_test/_all_docs_by_seq?startkey=0'
{"total_rows":1,"offset":0,"rows":[
{"id":"1","key":1,"value":{"rev":"1-1347026183"}}
]}
09:29 : ~ $ curl -X GET 'localhost:5984/sk_test/_all_docs_by_seq?startkey=1'
{"total_rows":1,"rows":[]}
09:29 : ~ $ curl -X GET 'localhost:5984/sk_test/_all_docs?startkey="1"'
{"total_rows":1,"offset":0,"rows":[
{"id":"1","key":"1","value":{"rev":"1-1347026183"}}
]}

Mime
View raw message