incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karel Minařík <karel.mina...@gmail.com>
Subject Re: Bulk Updates in CouchDB
Date Tue, 16 Nov 2010 14:35:53 GMT
>> Hmm, could you explain a bit how it should work? (Because the way I
>> understand it, you have to iterate over _all_ the docs and check `if
>> doc.value == xxx` in the client code? That'd be impossible for  
>> large data
>> sets.)
>
> Given /mydb/_design/mydd with the following
> views: { foo: { map: function(doc) { emit(doc.value, doc._rev) } } }
>
> Then you fetch this:
>
> /mydb/_design/mydd/_view/foo?key="xxx"

Sure, but only for the doc attribute specified in `foo`. Then you'd  
have to define views for all the attributes you want to query this  
way, which is "impossible" for large and/or fast growing data sets. Or  
what am I missing?

Karel

Mime
View raw message