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 690C84DE4 for ; Tue, 5 Jul 2011 07:33:33 +0000 (UTC) Received: (qmail 90660 invoked by uid 500); 5 Jul 2011 07:33:31 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 89975 invoked by uid 500); 5 Jul 2011 07:33:15 -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 89918 invoked by uid 99); 5 Jul 2011 07:33:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2011 07:33:09 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of email.workbench@gmail.com designates 209.85.161.44 as permitted sender) Received: from [209.85.161.44] (HELO mail-fx0-f44.google.com) (209.85.161.44) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2011 07:33:01 +0000 Received: by fxe6 with SMTP id 6so5508022fxe.31 for ; Tue, 05 Jul 2011 00:32:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=vQAERI6OCOQRMPrImbcIHIzzoYlqBQS6RF8qYLi1QiU=; b=VXaJwFdbqivvFxC+Mscl1kRZRlozthXKQ8qAzV2zOqR856D6+pDGmiHMGdtGTTn/Ut W7fykb4kzh0h1CQqCygg1vxNQViwsKVWUghEF5JUOQ0c4r9BpmwSZl0eaWDAhMqDVPmQ Vq7K2ZKaIJA2jz7xA+NfkD+h5yDixPJTj4U4M= MIME-Version: 1.0 Received: by 10.223.86.76 with SMTP id r12mr8601415fal.80.1309851161393; Tue, 05 Jul 2011 00:32:41 -0700 (PDT) Sender: email.workbench@gmail.com Received: by 10.223.122.68 with HTTP; Tue, 5 Jul 2011 00:32:41 -0700 (PDT) In-Reply-To: References: Date: Tue, 5 Jul 2011 03:32:41 -0400 X-Google-Sender-Auth: Vs2dIv_qs89RpTUA3J3_Eo9XRiw Message-ID: Subject: Re: few doubts From: Zdravko Gligic To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org oh, i hate gmail, as it seems to react to certain key combinations ... Focus - It seems that CouchDB has been purposely designed with "single mindedness in mind". The approach seems to be that it can be most efficient if its various functions and its various tasks do small amounts of work in the most efficient way possible. So, it would seem that writes keep on writing to the end of file, instead of flipping through it and trying to over-write and update in place existing docs. Again, in order to be as efficient as it can be with those writes, it foregoes updating the views (the same way that an RDBMS would update all of the related indices as part of its record update) and leaves it for another process which will concentrate on doing just that. So, it seems that "context switching" or not having to do much of such switching is where it gets lots of it processing efficiency. Again, I am most anxious to see how my noob understandings check out with technical realities. ;) HTH, teslan