Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support some form of "reduce" operation. #3

Open
nlfiedler opened this issue Sep 8, 2019 · 1 comment
Open

Support some form of "reduce" operation. #3

nlfiedler opened this issue Sep 8, 2019 · 1 comment

Comments

@nlfiedler
Copy link
Owner

This library has the "map" concept from CouchDB/PouchDB, but it lacks the corresponding "reduce" that is part of the "map/reduce" paradigm. It is not a critical feature, but it is sometimes useful. In particular, a way to "count" or "sum" the outputs of the map function seems the most common use case.

@nlfiedler
Copy link
Owner Author

Added count_by_key() and count_all_keys() which does a query that returns results similar to what a _count CouchDB reducer would produce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant