unsubscribe

On 8 Oct 2018, 09:55 +0100, 蒋鹏程 <jiang.pengch...@navercorp.com>, wrote:
> Hello everybody:
>
> I'm a little confused with the "_changes" API, as when I add the parameter 
> "limit=1" to it, the server may return different result for same requests 
> even though there is no new changes to database.
> below are some details:
>
> 1. there are only two empty documents in the database:
>
> > curl "http://admin:password@localhost:5984/demo/_all_docs";
> {"total_rows":2,"offset":0,"rows":[
> {"id":"first","key":"first","value":{"rev":"1-967a00dff5e02add41819138abb3284d"}},
> {"id":"second","key":"second","value":{"rev":"1-967a00dff5e02add41819138abb3284d"}}
> ]}
>
>
> 2. send some requests to the '_changes' api with 'limit=1', and the results 
> can be different sometimes
>
> > curl "http://admin:password@localhost:5984/demo/_changes?limit=1";
> {"results":[
> {"seq":"1-g1AAAAHWeJzLYWBg4MhgTmEQS84vTc5ISXIwNNAzNDDTMzK01DM0s8wByjMlMiTJ____PyuDOZEhFyjAbpqaaGlhZJjCwFmal5KalpmXmkLIjCQFIJlkDzImkYGgYgeQ4ngUO9OMklOMTFJJsjMBZEw9cXbmsQBJhgYgBVQ_n2gNCyAa9oMcygh2qImBgYmhhSFOzcSZewBi7n2iHfIAogHk1SwASFx9hQ","id":"second","changes":[{"rev":"1-967a00dff5e02add41819138abb3284d"}]}
> ],
> "last_seq":"1-g1AAAAHWeJzLYWBg4MhgTmEQS84vTc5ISXIwNNAzNDDTMzK01DM0s8wByjMlMiTJ____PyuDOZEhFyjAbpqaaGlhZJjCwFmal5KalpmXmkLIjCQFIJlkDzImkYGgYgeQ4ngUO9OMklOMTFJJsjMBZEw9cXbmsQBJhgYgBVQ_n2gNCyAa9oMcygh2qImBgYmhhSFOzcSZewBi7n2iHfIAogHk1SwASFx9hQ","pending":1}
> > curl "http://admin:password@localhost:5984/demo/_changes?limit=1";
> {"results":[
> {"seq":"1-g1AAAAGieJzLYWBg4MhgTmEQS84vTc5ISXIwNNAzNDDTMzK01DM0s8wByjMlMiTJ____PyuRgZDKJAUgmWRPpGIHkOJ4IhUngBTXE6c4jwVIMjQAKaD6-VkZzImMuUABdhPTpGRLg0ScmokzdwHE3P1EO-QARMN9ojU8gGgAeTULAFQMcCY","id":"first","changes":[{"rev":"1-967a00dff5e02add41819138abb3284d"}]}
> ],
> "last_seq":"1-g1AAAAGieJzLYWBg4MhgTmEQS84vTc5ISXIwNNAzNDDTMzK01DM0s8wByjMlMiTJ____PyuRgZDKJAUgmWRPpGIHkOJ4IhUngBTXE6c4jwVIMjQAKaD6-VkZzImMuUABdhPTpGRLg0ScmokzdwHE3P1EO-QARMN9ojU8gGgAeTULAFQMcCY","pending":1}
>
>
> in my opinion, the result should be fixed if there is no new operations on 
> the database but actually it's not
>
> Could someone explain this for me? Many thanks.
>
> Sincerely
> Jiang PengCheng

Reply via email to