I’m trying to use _changes API while dynamically determining the update sequence to start from (_changes?feed=longpoll&since=SEQ). I want to get SEQ number based on the doc._id for let’s say, all the docs that have field doc.doctype === "data" (I’ll be using filters for that). Is this possible? I understand that my problem can be solved using different design documents, but I want to do this using only one design doc.
I’m trying to use _changes API while dynamically determining the update sequence to start
Share
There is no correlation between a document’s id (or rev) and the database’s seq number. The seq number is only relevant to a database on a single machine (think replication).
So, the only place I know of to get a useful seq number is the ‘update_seq’ returned by GET’ing a database resource’s URL: