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

Combine views into a single ddoc #72

Open
redgeoff opened this issue Dec 6, 2017 · 0 comments
Open

Combine views into a single ddoc #72

redgeoff opened this issue Dec 6, 2017 · 0 comments

Comments

@redgeoff
Copy link
Owner

redgeoff commented Dec 6, 2017

As per http://mail-archives.apache.org/mod_mbox/couchdb-user/201712.mbox/%3CD7D02FB1-8761-47BF-96E6-A561EA08FC84%40apache.org%3E, Jan says

Quick comment on one or multiple view(s)-per-ddoc: this is a performance trade-off and not
either one is always correct. But generally, I would recommend grouping all views an app would
need into a single ddoc.

For each ddoc, all docs in a database have to be serialised and shipped to couchjs and the
results are shipped back, that’s the bulk of the work in view indexing. Evaluating a single
map/reduce function is comparatively minuscule, so grouping views in a single ddoc makes that
more efficient.

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

No branches or pull requests

1 participant