incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Florian Westreicher Bakk.techn." <>
Subject Re: proposed feature - list function /update handler half baby
Date Wed, 27 Nov 2013 08:16:11 GMT
This would create the ability that one document that is updated changes all the other docs.
I don't think that is a good idea. It will also run forever in a database with a few million
documents as they are not filtered by a view first. 

You can already do something like this with the changes feed and filter functions, just not
inside couch. 

Stanley Iriele <> wrote:
>Bulk updates in couchdb are a tad painful. you have to fetch them out
>the database apply your change and save them.
>I propose adding the ability to have something like an update handler
>folds across documents
>either in the way that lists do via get row
>function (head, req){
>while (var row = getRow()){
> =;
>  send(row.doc)// except this commits the doc to disk or something here
>or something along this could return an array over the wire
>bulk updates does....on a scale of 1 to 10 how bad of an idea is this?

Sent from Kaiten Mail. Please excuse my brevity.

View raw message