couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Anderson" <>
Subject Re: IMAP IDLE and realtime views
Date Thu, 20 Mar 2008 16:58:23 GMT

I was thinking along similar lines (that it would be cool to have real
time notification when a new row is added to a view). This would be
useful if the view corresponded to a business action that needs to
occur, etc. One could just make a view with the creation time of the
documents as the key, and create an RSS/Atom feed of the top of the

That solution isn't as flexible as actually having a callback on the
view server, which would fired each time map() is called. Perhaps this
general-purpose view callback could use Jabber / XMPP?


On Thu, Mar 20, 2008 at 3:54 AM, Alan Bell
<> wrote:
> Hi,
>  the Apple iPhone does push email by supporting IMAP IDLE. Basically what
>  this does is the client starts a regular IMAP session with the server
>  checking email etc. It then calls the IDLE command, the server does not
>  respond to this and complete the request until a new mail is delivered.
>  When the IDLE command completes the client goes through all the regular
>  IMAP commands to check for a new mail in the inbox.
>  I would like to see an idle query option on couchdb views. This would
>  only return when the view index is changed (it doesn't need to be
>  accurate, it doesn't matter much if it returns when there is actually no
>  update to the view)
>  With this a client could maintain a rendering of a view updating it
>  automatically in real time if it wanted to.
>  Does this make sense?
>  Alan.

Chris Anderson

View raw message