title: How to reduce the memory use during building index in pouchDB?
body: <p>I am using pouchDB in indexdb inside Android webview. Below is the command I used to build the index the first time after syncing database.</p>
  
  <pre><code>db.query('my_index', {
                              startkey: ["1111"],
                              endkey: ["1111", {}],
                              include_docs: false
                          });
  </code></pre>
  
  <p>it works well until the database becomes large. It consumes so much memory that it crash the android app. I wonder is there another way to build the index as batch steps? Like I build the index inside a loop, create index for 1000 documents each time.</p>
  
  <p>If it doesn't work, whether I can build the index on couchdb side then sync to browser? Does couchdb support sync index?</p>
  
  <p>Based on the above code, what fields are indexed? Does above code build index on every fields in the database?</p>