title: CouchDB view is extremely slow
body: <p>I have a CouchDB (v0.10.0) database that is 8.2 GB in size and contains 3890000 documents.</p>
  
  <p>Now, I have the following as the Map of the view</p>
  
  <pre><code>function(doc) {emit([doc.Status], doc);
  </code></pre>
  
  <p>And it takes <strong>forever</strong> to load (4 hours and still no result).</p>
  
  <p>Here's some extra information that might help describing the situation:</p>
  
  <ol>
  <li><p>The view is not a temp view. The
  view is defined before the 3890000
  documents are inserted.</p></li>
  <li><p>There isn't anything on the server. It is a ubuntu box with nothing but the defaults installed.</p></li>
  <li><p>I see that my CPU is moving and working hard (sometimes shoots to 100%). The memory is moving as well but not increasing.</p></li>
  </ol>
  
  <p>So my question is:</p>
  
  <ol>
  <li>What is actually happening in the background?</li>
  <li>Is this a "one time" thing where I have to wait once and it will somehow works later?</li>
  </ol>