Couchbase's documentation on GSI states that Global Secondary Index is a powerful solution for secondary lookup queries that are required for interactive applications that require low latencies.

The documentation also mentions that GSI has good write performance, so I am wondering if there are use cases (besides requiring MapReduce aggregations) where Views would be preferred.


The other advantage views have theoretically is that with a large rate of mutations, you'd have a lot of index recalculations. Views are local to each node, so you don't need to move the data across the physical network to index it.

This all depends on implementation details, the size/types of your documents/indexes, how your system resources are laid out, etc. Testing should tell you which one works best and note that there is a lot of active development on GSI features such as plasma.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.