incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Borja Martín <bor...@dagi3d.net>
Subject arbitrary structure for joins redux
Date Sun, 20 Jun 2010 23:05:46 GMT
Hi,
I recently discovered the new feature added in couchdb 0.11 which lets to
link related documents in the emit function by passing the _id value of a
given doc like it's explained in
http://blog.couch.io/post/446015664/whats-new-in-apache-couchdb-0-11-part-two-views
I find this feature quite useful, but I would like to know if its planned to
let use an arbitrary structure as the value for the emit function which
could contain several _id's references like emit(key, {title:"lorem ipsum",
foo:{_id : "foo"}, bar : {_id : "bar"}})
so there could be linked more than one document with a single emit call. a
possible solution could probably be to call the emit function several times
but then include_docs parameter could not be used when a reduce function is
defined.

Thanks in advance

Regards

-- 
def dagi3d(me)
 case me
   when :web then  "http://dagi3d.net"
   when :twitter then "http://twitter.com/dagi3d"
 end
end

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