[ https://issues.apache.org/jira/browse/COUCHDB-1367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13175143#comment-13175143 ]
Robert Newson commented on COUCHDB-1367: ---------------------------------------- I would hope it's obvious that update_seq must be monotonously incrementing (i.e, it cannot go down). You're right in the strict sense here, readers of the changes feed will get a row for each document change, and nothing else. The subtle point I think you've missed in that some applications want to know if they've read all changes up to the current update sequence of the database. non stale=ok view queries already do this, and couchdb-lucene does too. It turns out that *only* the view engine can do it correctly in all cases because it knows the last sequence value that affected a document (that is, it doesn't 'see' the change to _security, and thus doesn't block for that change). > When settings revs_limit on db - the db increases its update_seq counter when > viewing stats - but not when getting changes > -------------------------------------------------------------------------------------------------------------------------- > > Key: COUCHDB-1367 > URL: https://issues.apache.org/jira/browse/COUCHDB-1367 > Project: CouchDB > Issue Type: Bug > Components: HTTP Interface > Affects Versions: 1.1.1 > Environment: Any > Reporter: Henrik Hofmeister > Assignee: Bob Dionne > Priority: Minor > Labels: revs_limit > > If you put a number to _revs_limit on a db (to update it) - the > http://host/dbname/ info document gets an increase in update_seq number - > however the changes feed does not contain this change (while its not a > change). This causes the update_seq in the dbinfo doc and the last seq in the > changes feed to differ - which breaks any application depending on the > update_seq number as the expected sequence size of the db (in my case - > couchdb-lucene that will only respond to stale requests because it thinks its > not up to date) > I know this is an edge case - but still its something fairly fundamental - > that clearly is not working as intended. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira