couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Ramage <>
Subject Re: Forcing document reindex
Date Wed, 17 Nov 2010 20:45:58 GMT
Thinking about this, you don't have to get all the database. If you
have the set of keys you are interested in for all the docs eg
[clientName, dateMP1, dateM1]

1. create a design doc '_design/report'

2. create a view that for all types you want, eg 'by_id' and
    emit(doc._id, doc)

3. create a list function in the same design doc as above. This list
function will be responsible for joining the group of things together
in your report. eg 'meeting_average_time'

3. To query the list function so that you only get the keys you are
interested in, you will need to do a post to an example url:
body: {"keys": ["John_Smith", "MP1","M1"]}


On Wed, Nov 17, 2010 at 11:45 AM, Nicolas Jessus
<> wrote:
>> What about a list function?
> I really don't see how that would work, except by getting most of the database
> to be returned to the list function and doing set manipulation there...

View raw message