Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 81626 invoked from network); 3 Jan 2011 13:45:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Jan 2011 13:45:08 -0000 Received: (qmail 83384 invoked by uid 500); 3 Jan 2011 13:45:08 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 83140 invoked by uid 500); 3 Jan 2011 13:45:07 -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 83130 invoked by uid 99); 3 Jan 2011 13:45:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jan 2011 13:45:06 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jan 2011 13:45:06 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p03DijtN010836 for ; Mon, 3 Jan 2011 13:44:45 GMT Message-ID: <5704014.107811294062285843.JavaMail.jira@thor> Date: Mon, 3 Jan 2011 08:44:45 -0500 (EST) From: "Filipe Manana (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Created: (COUCHDB-1009) Make couch_stream buffer configurable MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Make couch_stream buffer configurable ------------------------------------- Key: COUCHDB-1009 URL: https://issues.apache.org/jira/browse/COUCHDB-1009 Project: CouchDB Issue Type: Improvement Components: Database Core Environment: trunk Reporter: Filipe Manana Assignee: Filipe Manana Priority: Trivial Attachments: COUCHDB-1009.patch The couch_stream buffer is hardcoded to 4Kb. This value should be configurable. Larger values can improve write and specially read performance (if we write larger chunks to disk, we have higher chances of reading more contiguous disk blocks afterwards). I also think it's a good idea to change the default value from 4Kb to something higher (64Kb for e.g.). Patch attached -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.