couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Uvarov <alexander.uva...@gmail.com>
Subject Re: Returning document referenced by _id in view
Date Mon, 17 May 2010 16:00:58 GMT

On 17.05.2010, at 21:57, Ning Tan wrote:

> I remember a "new" feature for the views to return referenced
> document(s) if I emit their keys in a certain way, thus saving me a
> round trip to load those documents, but I can't find the documentation
> describing that feature anymore.
> 
> Can somebody help me?
> 
> Thanks!

emit(key, { "_id": some_id })

http://blog.couch.io/post/446015664/whats-new-in-apache-couchdb-0-11-part-two-views

Cheers.
Mime
View raw message