Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 7620 invoked from network); 13 May 2009 14:26:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 May 2009 14:26:11 -0000 Received: (qmail 29951 invoked by uid 500); 13 May 2009 14:26:11 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 29892 invoked by uid 500); 13 May 2009 14:26:10 -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 29882 invoked by uid 99); 13 May 2009 14:26:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 May 2009 14:26:10 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.97.50.139] (HELO jan.prima.de) (83.97.50.139) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 May 2009 14:26:01 +0000 Received: from [192.168.1.102] (f053004162.adsl.alicedsl.de [::ffff:78.53.4.162]) (AUTH: LOGIN jan, TLS: TLSv1/SSLv3,128bits,AES128-SHA) by jan.prima.de with esmtp; Wed, 13 May 2009 14:25:39 +0000 Message-Id: <5D18FDB2-3529-451B-B829-E5DE7A090F61@apache.org> From: Jan Lehnardt To: dev@couchdb.apache.org In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: Reads vs Writes and contention Date: Wed, 13 May 2009 16:25:37 +0200 References: X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org On 1 May 2009, at 16:36, Kevin Jackson wrote: > Hi, > > I'm interested in any experiences people may have had with couch > reading and writing many records at the same time and what kind of > pitfalls there may be regarding the possible contention of > records/documents > > I'm intending to write some small benchmarks, but I was wondering if > anyone had seen any problems previously. Sorry, a late reply. In a nutshell, if you expect a lot of writes to a single logical piece of data, it makes sense to split up the piece into several documents, a new one per write and using views to fetch all related docs for your entity in one go. On a lower level, lightning-speed can be achieved if you keep your harddrive head writing without seeks. For that you want a big enough FS cache to serve your read requests and potentially an HTTP cache in front of CouchDB for additional speedups. Cheers Jan --