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 C75836AE2 for ; Thu, 30 Jun 2011 08:08:36 +0000 (UTC) Received: (qmail 26758 invoked by uid 500); 30 Jun 2011 08:08:35 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 26425 invoked by uid 500); 30 Jun 2011 08:08:26 -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 26412 invoked by uid 99); 30 Jun 2011 08:08:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jun 2011 08:08:21 +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 (athena.apache.org: domain of djc.ochtman@gmail.com designates 209.85.216.180 as permitted sender) Received: from [209.85.216.180] (HELO mail-qy0-f180.google.com) (209.85.216.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jun 2011 08:08:14 +0000 Received: by qyk30 with SMTP id 30so1392562qyk.11 for ; Thu, 30 Jun 2011 01:07:01 -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:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=JBDUv9hDEhGvaqS/ZvFhCm+Hq8ms20r1Xy0rDq5nUTE=; b=SZxb0o8qJkNcnas7VkwJyUMlSpt7tiOvhU21eYVoy5ZFre5N4GezvR3aeXrYuz6N6k +lQ1Es+PPBmbNIg3JRR8JKBH2nEduhZPxxsEAMsexKsUQcAsrJSppPO+1Dc8kLfqvrf7 gk0L90MFwLUuxxuuEP/wnp9xCkOgA0VL7anfo= Received: by 10.229.91.15 with SMTP id k15mr1305832qcm.157.1309421221080; Thu, 30 Jun 2011 01:07:01 -0700 (PDT) MIME-Version: 1.0 Sender: djc.ochtman@gmail.com Received: by 10.229.89.67 with HTTP; Thu, 30 Jun 2011 01:06:41 -0700 (PDT) In-Reply-To: References: <8B78BAB7-08D4-4FD3-AAB4-AC52657698C8@supercoders.com.au> From: Dirkjan Ochtman Date: Thu, 30 Jun 2011 10:06:41 +0200 X-Google-Sender-Auth: puDKkO1RKJ44La_dipGXduGTogg Message-ID: Subject: Re: Has Erlang's promise of parallelism been realised in CouchDB? To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 On Thu, Jun 30, 2011 at 09:53, Randall Leeds wrote: > But beyond the parallelization of request handling there's concurrency > in the more general sense. The neat thing about Erlang, and why it has > its reputation, is that the CouchDB code can be liberal about its use > of concurrency at the code level without suffering from deadlocks or > other headaches that often plague programmers of complex, > multi-threaded shared memory systems. The Erlang team has taken care > of all the hard parts about sharing data in a concurrent environment. > As I understand it, the Erlang runtime's use of chipsets with many > hardware threads is only improving, and those benefits will be > automatically conferred upon CouchDB. One thing that, as far as I know, has not been parallellized is the view indexer. While it should be possible to execute at least the map part of map/reduce concurrently, CouchDB doesn't do that yet. IIRC there were reasons for that? But at least it's good to be aware of. Cheers, Dirkjan