Overview
Index advisor is introduced in Couchbase server 6.5 as a developer preview feature. It targets at providing secondary index recommendation to help DBAs and developers optimize Couchbase N1QL query performance. This version is rule-based, and the index candidates will be generated following the design rules specified here.
- Leading array index key for unnest
- Equality predicates
- IN predicates
- Not less than/between/not greater than predicates
- Less than/greater than predicates
- Array predicates
- Derived join filter as leading key for left-hand-side keyspace
- IS NOT NULL/MISSING/VALUED predicates
- Functional predicates
- Partial index condition
Index advisor is designed to work in two ways: