Every flight has a flight plan. Every query has a query plan. In Couchbase Server, the query optimizer is responsible for creating the best query plan that it can for every query. But query plan optimization is a complex subject and improving query performance requires expert knowledge – just ask the RDBMS folks.
This session will teach you how the query optimizer selects the appropriate indices, index scan methods, and joins. It will teach you how to evaluate optimizer behavior using EXPLAIN PLAN and how to change the choices the optimizer makes, when needed. We’ll explore in detail how the query optimizer works, how to examine the query plan, and how you can tune your query performance with the USE INDEX clause. We will also discuss the new adaptive indexing feature being introduced in Couchbase Server 5.0 and how it simplifies index creation.