Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 12409 invoked from network); 15 Nov 2010 16:12:38 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Nov 2010 16:12:38 -0000 Received: (qmail 74527 invoked by uid 500); 15 Nov 2010 16:13:09 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 74397 invoked by uid 500); 15 Nov 2010 16:13:07 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 74389 invoked by uid 99); 15 Nov 2010 16:13:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Nov 2010 16:13:07 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [80.244.253.218] (HELO mail.traeumt.net) (80.244.253.218) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Nov 2010 16:13:00 +0000 Received: from dahlia.local (p5799E3E0.dip.t-dialin.net [87.153.227.224]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.traeumt.net (Postfix) with ESMTPSA id 732E03C106 for ; Mon, 15 Nov 2010 17:12:38 +0100 (CET) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Apple Message framework v1082) Subject: Re: scripts in [update_notification] section ? From: Jan Lehnardt In-Reply-To: Date: Mon, 15 Nov 2010 17:12:37 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <121768C2-28F2-4241-ADF5-EC8D961C7670@apache.org> References: <4CE1512D.5010607@free.fr> To: dev@couchdb.apache.org X-Mailer: Apple Mail (2.1082) On 15 Nov 2010, at 16:58, Zachary Zolton wrote: > I think your update notification script is not supposed to exit every > time there's a change. It's supposed to stay running in a loop where > you get the next line from standard input (for each update), only > quitting when that stream gets closed. That is correct. > That said, the update notification feature should generally be > considered deprecated by the newer changes API: > http://guide.couchdb.org/draft/notifications.html That is not correct :) =97 The two APIs serve different purposes and none of them is deprecated. That said, a /_db_update handler that acts like DbUpdateNotification but over HTTP would be neat. Cheers Jan --=20 >=20 > Cheers, > Zach >=20 > On Mon, Nov 15, 2010 at 9:26 AM, cdr53x wrote: >> Hi, >>=20 >> I read the article concerning the view updates in the wiki >> (http://wiki.apache.org/couchdb/Regenerating_views_on_update) and = tried to >> test this. >>=20 >> I just put a basic script that simply logs a message in my conf.ini = : >>=20 >> [update_notification] >> view_update=3D/home/tests/couchdb/deployed/bin/update_views.rb >>=20 >> After restarting couch, I noticed that this script is invoked _all_ = the >> time, i.e as soons as the script finishes couch starts another one. = And no >> insertions/updates are performed on the db. >>=20 >> So there seems to be no relation between the script execution and the = fact >> that a document has been inserted or updated. >>=20 >> Is this the expected behavior or a bug ? >>=20 >> Regards, >>=20 >> cdrx >>=20 >>=20