couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Hallett <>
Subject Re: is there a way to pass a request parameter to a view ?
Date Wed, 23 Sep 2009 15:12:08 GMT
The most efficient way to update a lot of docs currently is to download all
of the docs via a view query - try the `includedocs` query parameter - and
then to bulk update those docs with a single POST request.

There is no mechanism for updating through the view directly.

On Sep 23, 2009 5:40 AM, "Simon Metson" <> wrote:

       CouchDB takes care of the view slicing for you (see You'd write a view that emits
some key:values, and then do the query you describe (?key=foo) to return
only the values with key = foo. You can also do startkey=foo and endkey=bar
to get a slice of the view (e.g. look for continuous data in a range). You
don't need to worry about this in writing your view, since the view is
generated for all keys.

On 23 Sep 2009, at 04:37, go canal wrote: > Hello, > use case: >  - change
the value of a field o...

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message