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

Turn off delayed commits by default

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.9, 0.9.1
    • Fix Version/s: 0.11
    • Component/s: Database Core
    • Labels:
      None

      Description

      Delayed commits make CouchDB significantly faster. They also open a one second window for data loss. In 0.9 and trunk, delayed commits are enabled by default and can be overridden with HTTP headers and an explicit API call to flush the write buffer. I suggest to turn off delayed commits by default and use the same overrides to enable it per request. A per-database option is possible, too.

      One concern is developer workflow speed. The setting affects the test suite performance significantly. I'd opt to change couch.js to set the appropriate header to enable delayed commits for tests.

      CouchDB should guarantee data safety first and speed second, with sensible overrides.

        Attachments

        1. slow.rb
          0.2 kB
          Chris Anderson
        2. delayed_commits_v1.patch
          8 kB
          Adam Kocoloski

          Activity

            People

            • Assignee:
              kocolosk Adam Kocoloski
              Reporter:
              janl Jan Lehnardt
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: