incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesse Hallett <halle...@gmail.com>
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" <simonmetson@googlemail.com> wrote:

Hi
       CouchDB takes care of the view slicing for you (see
http://wiki.apache.org/couchdb/HTTP_view_API. 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.
Cheers
Simon

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

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