couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Kocoloski (JIRA)" <>
Subject [jira] Updated: (COUCHDB-449) Turn off delayed commits by default
Date Thu, 13 Aug 2009 16:49:14 GMT


Adam Kocoloski updated COUCHDB-449:

    Attachment: delayed_commits_v1.patch

Here's a patch to make delayed_commits a server-wide config option.  The setting looks like

delayed_commits = true

and defaults to false.  If finer-grained control is required users can override the default
by setting the X-Couch-Full-Commit header to true or false.

Jan mentioned enabling delayed_commits for the test suite.  I didn't do this.

> Turn off delayed commits by default
> -----------------------------------
>                 Key: COUCHDB-449
>                 URL:
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core
>    Affects Versions: 0.9, 0.9.1
>            Reporter: Jan Lehnardt
>            Priority: Blocker
>             Fix For: 0.10
>         Attachments: delayed_commits_v1.patch
> 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.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message