views:

25

answers:

1

Hi,

I'm using CouchDB and I have a situation where there are a bunch of documents keyed on user ids. I would like to be able to send a single query to update a particular field in all these documents. For example when a notification comes in, I'd like each user document to be updated with it by passing in the list of users to whom the notification applies and the notification message.

A: 

I'd read _changes (probably apply a filter) and then execute the HTTP queries needed.

Keep in mind that you'll need to fetch the document, before updating it.

Till