You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2020/01/21 14:44:04 UTC

[GitHub] [couchdb] lostnet commented on issue #2474: Discussion: How do I get a "since" value for _changes starting from a specific document?

lostnet commented on issue #2474: Discussion: How do I get a "since" value for _changes starting from a specific document?
URL: https://github.com/apache/couchdb/issues/2474#issuecomment-576713117
 
 
   @tomasged If I've understood the problem correctly, I think you can use `/db/_changes?descending=true&since=[firstdocseq]&limit=2` to get a potential previous sequence to use in replications, then you would need to verify that you've been given at least the documents you want or re-replicate and make sure your code can live with any additional documents from different order responses..
   
   A different approach might be to rely on a view and an application layer source of order (i.e. timestamp fields?) 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services