Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-1791

Initial index of views is highly fragmented

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.2.1
    • None
    • JavaScript View Server

    Description

      function(doc) {
        if (doc.a === 'b') { emit(doc._id, null); }
      }
      

      This view, running on CouchDB 1.2.1, takes 16 minutes to index from scratch on an inactive database, creating a 2.5GB file.
      After compaction, the file is then only 157MB.

      Can we do something about this waste of disk I/O, such that the initial index is smaller to start with?

      Attachments

        Activity

          People

            Unassigned Unassigned
            jameshowe James Howe
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: