Skip to main content

Posts

Showing posts with the label ORACLE

Introduction to Couchbase for Oracle Developers and Experts: Part 7: Optimizer

To database what Yoda is to Star Wars, optimizer is. - Yoda Separating the HOW (logical, physical representations, access methods) from WHAT (the SQL query) was the genius of the relational model. SQL has been unreasonably effective for relational model and beyond. A good optimizer is critical for SQL irrespective of the data model. The job of an optimizer is to produce an efficient execution algorithm, commonly known as the query plan or simply the plan.  Oracle is a RDBMS, used a rule based optimizer(RBO) for many years before  switching to Selinger style cost-based optimizer.  Couchbase N1QL is a declarative query language that is SQL for JSON. Couchbase N1QL also started with a rule based optimizer.  In 2021, we added a cost based optimizer (CBO) for the query service. CBO for the analytics service is on the roadmap.  JSON is flexible, supports complex objects, arrays in documents and predicates.   Couchbase's patented cost based optimizer builds o...