Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 27433 invoked from network); 17 Jun 2008 21:57:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Jun 2008 21:57:19 -0000 Received: (qmail 44285 invoked by uid 500); 17 Jun 2008 21:57:20 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 44263 invoked by uid 500); 17 Jun 2008 21:57:20 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 44252 invoked by uid 99); 17 Jun 2008 21:57:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jun 2008 14:57:20 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of schickb@gmail.com designates 64.233.166.179 as permitted sender) Received: from [64.233.166.179] (HELO py-out-1112.google.com) (64.233.166.179) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jun 2008 21:56:30 +0000 Received: by py-out-1112.google.com with SMTP id u52so2091960pyb.13 for ; Tue, 17 Jun 2008 14:56:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=DFAOFfa/c0ViSI8AAKtsdR5lKAw4HJeu1JkrYwBdY+A=; b=F/Ps74NTLWkkfrIOIIak1Q2OC9QCXqioMTGoo94Ndq+ZCPH/8b+9w9T0xF70dnERgf B1MreBYT/XRZ1cqnO2aWyu0Xj6nFapSLVcdB3nenWINVfd1e/NY3IaPdRs6hem7AO8Jj b8dtbCIwHPwpxxilVb4/KNlDaNL4ZKUs30HQk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=Hyt+WlKSXoXeuGvZWBpG7CR+G7GpqoOc2Qz0wLORiZhTZTL+h0BRIQZOMp/34Xk3R0 oJdrjgz0bNtgtSomsHrt9ZJwEqiuR6+httca/p3bHFfFAtDpFgOMFeHDEtp6VQMU0lMB iHVHuBtIw61k3Ag4sX1OMUayzDn1jR4OYRecQ= Received: by 10.114.182.15 with SMTP id e15mr8783958waf.84.1213739807489; Tue, 17 Jun 2008 14:56:47 -0700 (PDT) Received: from ?192.168.1.2? ( [71.212.28.28]) by mx.google.com with ESMTPS id m30sm9676570wag.0.2008.06.17.14.56.46 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 17 Jun 2008 14:56:46 -0700 (PDT) Message-ID: <485832F7.5080009@gmail.com> Date: Tue, 17 Jun 2008 14:56:07 -0700 From: Brad Schick User-Agent: Thunderbird 2.0.0.14 (X11/20080505) MIME-Version: 1.0 To: couchdb-user@incubator.apache.org Subject: Re: Bad write performance References: <48580C64.40806@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 06/17/2008 12:57 PM, Brian Whitman wrote: > > On Jun 17, 2008, at 3:11 PM, Brad Schick wrote: > >> I am seeing very poor write performance running CouchDB on Ubuntu Linux >> 8.04. I built CouchDB from source about a week ago, and I am using the >> Python wrapper to access it all on localhost. >> >> I am trying to add over 90,000 documents (each is about 400 bytes) and >> finding that I can only add about 16 documents per second. And while >> this is happening, my CPU is about 75% idle. > > Are you using the update method in python (which uses _bulk_docs) ? > You need the svn version of the python wrapper for it. > > On a slow machine (dual proc 1.8 GHz) using the python wrapper I added > 100K docs 10K at a time, each with a random string, uuid, float and > int in 180 seconds (roughly 550 documents/second.) One CPU was pegged > at 100% with beam.smp during the update and the python client did not > even rate on top during the update (it was just waiting for a response.) > > I couldn't increase my chunk size much past 10K -- couch would return > a (very long) error if I tried 5 20K chunks for example. > I have the code from svn, but I haven't tried bulk uploading yet because I've been primarily testing schema.py which currently only does single document stores. Maybe I'll hook that up to bulk writes and see how it goes. -Brad