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

Rewrite the view engine

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • JavaScript View Server
    • None
    • Regular Contributors Level (Easy to Medium)

    Description

      The view engine has been creaky and cluttered. As shown by GeoCouch, adding new indexers basically involves copying the entire view engine and hacking the parts that are different. In short, the opposite of good engineering.

      Over the last couple weeks I've refactored the view engine and reimplemented the map/reduce view engine. These changes are 100% internal and no external behavior has changed. Performance is just a tiny bit better than trunk. I did do some playing trying to improve view update times and there are some dances we could do, but for the time being I wanted to keep the same general architecture for updates so that the changes are minimal.

      Attachments

        1. 0004-Remove-the-old-view-engine.patch
          117 kB
          Paul Joseph Davis
        2. 0003-Create-the-couch_mrview-application.patch
          118 kB
          Paul Joseph Davis
        3. 0002-Create-the-couch_index-application.patch
          36 kB
          Paul Joseph Davis
        4. 0001-Minor-changes-for-new-indexing-engine.patch
          9 kB
          Paul Joseph Davis

        Activity

          People

            Unassigned Unassigned
            paul.joseph.davis Paul Joseph Davis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: