Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3037E9E26 for ; Wed, 6 Mar 2013 12:14:51 +0000 (UTC) Received: (qmail 27856 invoked by uid 500); 6 Mar 2013 12:14:49 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 27346 invoked by uid 500); 6 Mar 2013 12:14:44 -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 27318 invoked by uid 99); 6 Mar 2013 12:14:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Mar 2013 12:14:43 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.128.179] (HELO mail-ve0-f179.google.com) (209.85.128.179) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Mar 2013 12:14:37 +0000 Received: by mail-ve0-f179.google.com with SMTP id da11so6754238veb.10 for ; Wed, 06 Mar 2013 04:14:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-originating-ip:in-reply-to:references :from:date:message-id:subject:to:content-type:x-gm-message-state; bh=A3oED0k8TqyxFmK5UM2Ujqq3Jv15oZBx8tba2N/bV8E=; b=kJC3h2wua7FqPPIF9CoBn9A+QThn5Xu8NPsuLiJkkEDDU3hDM0OpsV1ZaUfF6+6Bnv tNucXPbDZRqfh77ndcbZTL2OW7YmHRHyket2tGuj6wlZuFDn9/8o1mzjaGSQc5OenLUc /v/g32IZBiTfcO06LLgs5/jXnrkKObnDop4rDQlGSM9pQnHeL2QsFdFNckv/YsVbjSzc oPWl/7hoABNS7Nb+vliRAL0s398JlozbYxnhPWWDE04H4iYdQAMa/JH8Anq/ptruNBDS A4144gVLX6uYZoqOBbBPHt38RivVWJFpEAGHSvT2nyKvhZLNyLm51Mx309/MfhzKlSFM dJ0A== X-Received: by 10.52.75.65 with SMTP id a1mr9716331vdw.79.1362572053982; Wed, 06 Mar 2013 04:14:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.58.200.165 with HTTP; Wed, 6 Mar 2013 04:13:42 -0800 (PST) X-Originating-IP: [80.94.224.211] In-Reply-To: <20130306133305.164ae757@svilendobrev.com> References: <20130306133305.164ae757@svilendobrev.com> From: Anthony Ananich Date: Wed, 6 Mar 2013 15:13:42 +0300 Message-ID: Subject: Re: Update handler is very slow To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQl8bu386H8W0PJB0/uUkSrg/3Qjd7jec4fFaQsUbHb3u9LPXN9I9dSvy01Q4YWZLQvDCFhq X-Virus-Checked: Checked by ClamAV on apache.org And how much does it take to add document by HTTP PUT? On Wed, Mar 6, 2013 at 2:33 PM, svilen wrote: > +1. i'd like to know also about update_handlers as i may get into such > situation soon. > > not an answer: > if you sure your transformation is correct, my lame take would be: > don't do anything. > 4doc/s, 12000/hour - so by tomorrow it would be done. > > of course, no harm to find/learn - e.g. u may need to rerun it again.. > > ciao > svilen > > On Wed, 6 Mar 2013 12:06:41 +0100 > Daniel Gonzalez wrote: > >> Hi, >> >> We have a problem in our data: we have been inconsistent in one of our >> fields, and we have named it in different ways. Besides, in some >> places we have used int, in other places string. I have created an >> update handler to correct this situation, and I am running it for our >> 100 thousand documents database, by doing PUT requests, as explained >> http://wiki.apache.org/couchdb/Document_Update_Handlers >> >> What I am doing is: >> >> 1. get affected documents with a view >> 2. call the update handler. >> >> And this is running over an ssh tunnel. >> >> My problem is that this is veeeery slow. Currently I am running at 4 >> docs/s. Is this normal? >> >> I could do this locally (no ssh tunnel), but I guess things would not >> improve much, since the data being transferred is not that big (no >> include_docs, and the view emits very litte information). I have the >> impression that the bottleneck is couchdb itself: the update handler >> is just that slow. >> >> Am I right about this? Is there a way to speed this up? >> >> Thanks, >> Daniel