couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zachary Zolton <>
Subject Re: scripts in [update_notification] section ?
Date Mon, 15 Nov 2010 15:58:38 GMT
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 said, the update notification feature should generally be
considered deprecated by the newer changes API:


On Mon, Nov 15, 2010 at 9:26 AM, cdr53x <> wrote:
> Hi,
> I read the article concerning the view updates in the wiki
>  ( and tried to
> test this.
> I just put a basic script  that simply logs a message in my conf.ini :
> [update_notification]
> view_update=/home/tests/couchdb/deployed/bin/update_views.rb
> 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.
> So there seems to be no relation between the script execution and the fact
> that a document has been inserted or updated.
> Is this the expected behavior or a bug ?
> Regards,
> cdrx

View raw message