From user-return-20040-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Wed Mar 14 09:52:44 2012 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 BA0299E31 for ; Wed, 14 Mar 2012 09:52:44 +0000 (UTC) Received: (qmail 67254 invoked by uid 500); 14 Mar 2012 09:52:43 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 67190 invoked by uid 500); 14 Mar 2012 09:52:42 -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 67178 invoked by uid 99); 14 Mar 2012 09:52:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2012 09:52:42 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of matthieu.rakotojaona@gmail.com designates 74.125.82.180 as permitted sender) Received: from [74.125.82.180] (HELO mail-we0-f180.google.com) (74.125.82.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2012 09:52:34 +0000 Received: by werf3 with SMTP id f3so1943726wer.11 for ; Wed, 14 Mar 2012 02:52:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=QCsokwahg8l4nvhc10ahkHdQ3TU6iPEh/9BpipjAQ2I=; b=Zv6/H6s8wOpP9NI0DL/iEP9enw6+TcQcrtpvCoW7U/maKs1lkaYH/wbKocc8DiMKmu BlJWOQvhpqL+jgMl8aeHlSCjrjDvOpxy+6CecBB4601m8H7DRkodfK9YrXkKCERBSQ8M KhZtjomp789eeMMbO+mrZkZIOq1Gs/EGub1/UXOdi9AjUCRTV/EJn2YfQRMP974xjNE0 Gcv1+Cf3Jg17RlzPCrSwTvDE0xhHtbqwGTwcNl9GtWCy+JvDm1h5JPix3Jv/EtHFOtJh RU/iXfeKn5nrpSxlJCi2O0FyUpt8rWXiI6JGGqWMfsJ4hV2XbSx1ITQe2VFYac0DSRtE 4Zdw== Received: by 10.216.133.39 with SMTP id p39mr1140690wei.40.1331718734023; Wed, 14 Mar 2012 02:52:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.17.133 with HTTP; Wed, 14 Mar 2012 02:51:53 -0700 (PDT) In-Reply-To: References: From: Matthieu Rakotojaona Date: Wed, 14 Mar 2012 10:51:53 +0100 Message-ID: Subject: Re: Creating a database with lots of documents and updating a view To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org You may try to compact the view (and the db) after each insert, but this will dramatically increase the overall insert duration. I don't know very much about couchdb, but when you update the view you will have to traverse all your precedently created view leaves. Tidying it up will make the whole process faster, but each "tidy up" will be longer and longer. -- Matthieu RAKOTOJAONA