View writing guidance
There are some design considerations that you need to keep in mind while writing views. These guidelines will help you maintain views efficiently.
Couchbase updates all views that are in the same design document at the same time. This will result in increased index building time and high disk I/O operations. You can design by grouping frequently used views into a separate design document. However, you can improve the overall performance of views by grouping views into smaller numbers of design documents.
You should avoid too much computing in one view; it will affect performance of the view. If your view is complex, it will consume CPU resources while performing rebuilds of indexes. Whenever you require a reduce function, ensure ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access