Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 21047 invoked from network); 15 Jun 2009 09:44:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Jun 2009 09:44:47 -0000 Received: (qmail 9229 invoked by uid 500); 15 Jun 2009 09:44:58 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 9149 invoked by uid 500); 15 Jun 2009 09:44:58 -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 9139 invoked by uid 99); 15 Jun 2009 09:44:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jun 2009 09:44:58 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [80.244.253.213] (HELO mail.traeumt.net) (80.244.253.213) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jun 2009 09:44:47 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.traeumt.net (Postfix) with ESMTP id D94C272618C for ; Mon, 15 Jun 2009 11:44:26 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.traeumt.net Received: from unknown by localhost (amavisd-new, unix socket) id bSLkIQW9tkJN for ; Mon, 15 Jun 2009 11:44:25 +0200 (CEST) Received: from [192.168.1.100] (f053006117.adsl.alicedsl.de [78.53.6.117]) by mail.traeumt.net (amavis-milter) id (milter macro {i} not defined); Mon, 15 Jun 2009 11:44:25 +0200 Message-Id: From: Jan Lehnardt To: user@couchdb.apache.org In-Reply-To: <193718880906111045r1b43d21dn2dd403894143b52@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: Trigger notifications to separate processes Date: Mon, 15 Jun 2009 11:44:25 +0200 References: <193718880906111045r1b43d21dn2dd403894143b52@mail.gmail.com> X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org On 11 Jun 2009, at 19:45, mani jassar wrote: > On an update to the database I want to notify a separate process of > the > change. What are the right mechanisms to use to do so? What is the > best > way to trigger a notification to an Erlang process? Have a look at the FaQ: http://wiki.apache.org/couchdb/Frequently_asked_questions#update_views_more_often Instead of updating the view on update, you just trigger your code. Cheers Jan --