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