couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From go canal <>
Subject Re: is there a way to pass a request parameter to a view ?
Date Thu, 24 Sep 2009 00:33:08 GMT
if I have to use POST, does this mean I have to post everyting again, including attachements

From: Jesse Hallett <>
Sent: Wednesday, September 23, 2009 11:12:08 PM
Subject: Re: is there a way to pass a request parameter to a view ?

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