Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 65063 invoked from network); 22 Oct 2009 10:55:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Oct 2009 10:55:51 -0000 Received: (qmail 64360 invoked by uid 500); 22 Oct 2009 10:55:49 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 64284 invoked by uid 500); 22 Oct 2009 10:55:49 -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 64274 invoked by uid 99); 22 Oct 2009 10:55:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Oct 2009 10:55:49 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of fabio.forno@gmail.com designates 209.85.210.176 as permitted sender) Received: from [209.85.210.176] (HELO mail-yx0-f176.google.com) (209.85.210.176) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Oct 2009 10:55:40 +0000 Received: by yxe6 with SMTP id 6so5230147yxe.13 for ; Thu, 22 Oct 2009 03:55:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=NpiOfzDar9PsrKlAfMBoyBFU+QZMPhBuwMgA5xLBcqo=; b=wqGgg514rtouZnYnge51QP78MAMY1RJGlqIM2ety9fEbpKp4i6VoDRvIwvyWUg8zLX xH3wPlRAFA+N/1TDCPVHtOVIaVQNIM9C8F2DzYXKn0ufNjb9H90ZiMzhQS33/5SsyulE ZVcu6HJrnExIaCbqQMEQI0myx9o053d5KLL8c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=qH5hPq4JZuVliBa7dcADpnj9llZIsUtfljM6xtP2er6fdo2N6EGj5r/sdXQBS6M1V6 qPOdsApv4MZZBGGTIzX/iNZO4AG76BkcjX76PFOCdWF9W3BREPx3GKjVrVzN5h/d87CI FSzH+4jPrMq/103kP3ttUvGDNauKaHrXwd/5Q= MIME-Version: 1.0 Received: by 10.90.217.13 with SMTP id p13mr10429913agg.108.1256208919159; Thu, 22 Oct 2009 03:55:19 -0700 (PDT) Date: Thu, 22 Oct 2009 12:55:19 +0200 Message-ID: <2fd53c3a0910220355i3bcbe880j385cf68e61cd570b@mail.gmail.com> Subject: re-index efficiency From: Fabio Forno To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi, not knowing the internals of couchdb I may ask stupid question, so just ignore it if it's really stupid ;) Using it I've noticed the re-index times take a time which comparable to the insertion off all the documents without using bulk inserts, while with bulk inserts the insert ionof documents is much faster. Instead in my idea, re-indexing should be as fast as fast bulk inserts, since when computing an index we don't need to do many fsyncs, but instead allow maximum caching before disk writes (with berkeley db for example, sustained write of data exceeding the memory cache are 100-1000x faster without syncs for each write). So, since I don't think that this relative slowness is due to fsyncs which is the main reason? (another hint which rules out fsyncs is that cpu is rather high and not in waiting state) -- Fabio Forno, Bluendo srl http://www.bluendo.com jabber id: ff@jabber.bluendo.com