Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 66983 invoked from network); 15 Aug 2009 02:04:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Aug 2009 02:04:33 -0000 Received: (qmail 44500 invoked by uid 500); 15 Aug 2009 02:04:39 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 44408 invoked by uid 500); 15 Aug 2009 02:04:39 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 44397 invoked by uid 99); 15 Aug 2009 02:04:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Aug 2009 02:04:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Aug 2009 02:04:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C9706234C004 for ; Fri, 14 Aug 2009 19:04:14 -0700 (PDT) Message-ID: <332459302.1250301854810.JavaMail.jira@brutus> Date: Fri, 14 Aug 2009 19:04:14 -0700 (PDT) From: "Adam Kocoloski (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Closed: (COUCHDB-449) Turn off delayed commits by default In-Reply-To: <1852531864.1249412294881.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Adam Kocoloski closed COUCHDB-449. ---------------------------------- Resolution: Fixed Assignee: Adam Kocoloski we can always add new issues if folks require finer-grained config options like per-DB defaults or custom delays. > Turn off delayed commits by default > ----------------------------------- > > Key: COUCHDB-449 > URL: https://issues.apache.org/jira/browse/COUCHDB-449 > Project: CouchDB > Issue Type: Bug > Components: Database Core > Affects Versions: 0.9, 0.9.1 > Reporter: Jan Lehnardt > Assignee: Adam Kocoloski > 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.