What does the changes API actually do? does it list the last revision of each document + deleted documents?
or to put it this way:
Can the change notifications feature of couchdb be used to list all the documents that match a query?
For example, if I have the filter function:
search = function(doc,req)
{
return (doc.min && doc.max && doc.min < req.query.q && doc.max > req.query.q)
}
will I get all the documents that match doc.min < somevalue < doc.max here?
http :// server / database / _changes ? filter=doctype/search & q=somevalue
For my test database it appears to be so, but what if I have a large database?