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 08:09:52 UTC

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

tomasged edited a comment 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-576565408
 
 
   Our case is that the database is the source of truth. A user logins and that user only needs to start listening / replicating from the beginning of a bunch of documents. Normally, at 3/4 of the database.
   
   Retrieving such documents and then using changes with "now" could mean that between those two operations some changes are lost... I guess they should work in parallel but that just complicates things: first, changes with since=now and afterwards retrieving the documents of interest with a startKey since the IDs of the new generated documents are unknown (imagine a tree of documents with a common root). 
   
   We are used to use it with PouchDB as described in my first comment ("since" value of the minimum sequence of that bunch of documents minus one), but with the sequence number change for CouchDB 2.x, it destroyed that possibility I guess 

----------------------------------------------------------------
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