Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fixes #36 - Add support for CouchDB lists #37
A note on implementation - your list function should return a stringified object containing a
Example list function:
Also: If you wish to base a collection on a
Why would I want to use a
Most of the documentation I've read about CouchDB
Thx for this addition, didn't know that you can use lists in that way :).
added a commit
this pull request
Apr 2, 2012
Feel free to reuse my text, but I should add that I discussed this use of lists with some CouchDB experts on #couchdb, and they informed me that this should be used sparingly - only where it's impossible to get the same results with a view. The reason for this is that views are prepared beforehand, but lists must be built each time they're called.
In short, if you need JSON, use a view whenever possible, and only use a list when there's no way to get the same results with a view.