Best way to do one-to-many “JOIN” in CouchDB
Thank you! This is a great example to show off CouchDB 0.11’s new features! You must use the fetch-related-data feature to reference documents in the view. Optionally, for more convenient JSON, use a _list function to clean up the results. See Couchio’s writeup on “JOIN”s for details. Here is the plan: Firstly, you have a … Read more