Change notification in CouchDB when a field is set

Posted by PartlyCloudy on Stack Overflow See other posts from Stack Overflow or by PartlyCloudy
Published on 2010-06-11T10:16:29Z Indexed on 2010/06/11 19:53 UTC
Read the original article Hit count: 168

Filed under:

Hi,

I'm trying to get notifications in a CouchDB change poll as soon as pre-defined field is set or changed. I've already had a look at filters that can be used for filtering change events(db/_changes?filter=myfilter). However, I've not yet found a way to include this temporal information, because you can only get the current version of the document in this filter functions.

Is there any possibility to create such a filter?

If it does not work, I could export my field to a separate database and the only poll for changes in that db, but I'd prefer to keep together my data for obvious reasons.

Thanks in advance!

© Stack Overflow or respective owner

Related posts about couchdb