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:

http://192.168.1.101/test/_design/report/_list/meeting_average_time/by_id
body: {"keys": ["John_Smith", "MP1","M1"]}

(see http://wiki.apache.org/couchdb/HTTP_view_API#Querying_Options)








On Wed, Nov 17, 2010 at 11:45 AM, Nicolas Jessus
<nicolas.jes...@lores.org> 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...
>
>

Reply via email to