Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 99846 invoked from network); 10 Feb 2009 00:28:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Feb 2009 00:28:23 -0000 Received: (qmail 15343 invoked by uid 500); 10 Feb 2009 00:28:22 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 15306 invoked by uid 500); 10 Feb 2009 00:28:21 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 15294 invoked by uid 99); 10 Feb 2009 00:28:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Feb 2009 16:28:21 -0800 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 trepca@gmail.com designates 74.125.44.29 as permitted sender) Received: from [74.125.44.29] (HELO yx-out-2324.google.com) (74.125.44.29) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Feb 2009 00:28:15 +0000 Received: by yx-out-2324.google.com with SMTP id 31so116036yxl.5 for ; Mon, 09 Feb 2009 16:27:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=UtfsxtNBIxkhMxYk10Nz1WsbJ4fooyZTeXrOahuexok=; b=YkM0+BvRRMYrGIxSb720Ve5XyLtnMKCJ5xXX0LG/CCPjSBq4uznfA2TJ7pAqXJidXa ZKcYS4EIx3vmZTF/L9tHcGOrWLwuZXhfGnt40kEsQzRvEzE2iISAPqTahXtvYrv+QceJ kFQY3STzVXQWqcE/kKs69MB+QvWvy5MMm9H/M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=kXHqvb4g0Ukgi/LoEuHomsBvl5ALZtcFkPDtsGnDUDkJi98vrek1OuU8ar7zCGtPT3 IkbNgvKuWg4MQ3JOFd5pOF4vUrkRCiBQqDl36NhTbHt71y9N/fIoywQ/T5LfEpPpWbR9 HUajRCj86vYtyAIr7O8QqGKoc1352kBSFBnwU= MIME-Version: 1.0 Received: by 10.150.137.14 with SMTP id k14mr1369070ybd.173.1234225674507; Mon, 09 Feb 2009 16:27:54 -0800 (PST) In-Reply-To: References: Date: Tue, 10 Feb 2009 01:27:54 +0100 Message-ID: Subject: Re: Bad performance when storing documents From: Sebastjan Trepca To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Daamn, trunk version is 30 times faster! You need to release a new version ASAP! :) Erlang was the latest. Sebastjan On Tue, Feb 10, 2009 at 12:48 AM, Sebastjan Trepca wrote: > Wow, thanks guys for quick response! I'll try it out. > > Sebastjan > > > > On Tue, Feb 10, 2009 at 12:37 AM, Paul Davis > wrote: >> On Mon, Feb 9, 2009 at 6:30 PM, Sebastjan Trepca wrote: >>> Hi, >>> >>> downloaded latest version (0.8.1) and did some tests on it. GET's are >>> fast, but POST's are pretty disappointing. I am using the default >>> configuration on my Macbook Pro and it can process only 7 >>> POSTs/second. Am I missing something? >>> >>> Thanks, >>> Sebastjan >>> >> >> 1. Use _bulk_docs. The more docs you can load in a single request the >> more improvement you'll get. This is a direct RAM/speed tradeoff. >> 2. Use trunk. There have been numerous speed improvements since 0.8. >> You could also try the couchdb-devel port, but I'm not sure where it >> exactly in terms of SVN revision. I'm 95% certain there have been a >> few more patches that should improve speed since then. >> 3. Less importantly, but jchris would be upset if I didn't mention, if >> you can use sorted docids when inserting you can squeeze out more >> performance. >> >> HTH, >> Paul Davis >> >> Also, what Chris says. If your erlang VM is 5.5.5 or there abouts >> (check with `erl`) you're hitting a bug in erlang itself that's fixed >> with the newer RC's that are recommended for use. >> >