When use Couchbase Views instead of N1QL?

Hi @donadev,

In addition to what @cihangirb said, I would summarize the recommendation as follows.

Beginning with Couchbase 4.0, N1QL will be the most general way to query Couchbase (i.e. non-KV access). Views will continue to be recommended for the following cases:

  1. Using Javascript logic as part of the query
  2. Performing aggregation (reduce), materializing the results, and then maintaing the results incrementally as the source data is modified.

(2) is important for performance, because the aggregate results are essentially pre-computed.