Presentations

How to understand and use the query optimizer

How to understand and use the query optimizer

Every flight has a flight plan. Every query has a query plan. You must have seen its text form, called EXPLAIN PLAN. Query optimizer is responsible for creating this query plan for every query, and it tries to create an optimal plan for every query. In Couchbase, the query optimizer has to choose the most optimal index for the query, decide on the predicates to push down to index scans, create appropriate spans (scan ranges) for each index, understand the sort (ORDER BY) and pagination (OFFSET, LIMIT) requirements, and create the plan accordingly. When you think there is a better plan, you can hint the optimizer with USE INDEX. This talk will teach you how the optimizer selects the indices, index scan methods, and joins. It will teach you the analysis of the optimizer behavior using EXPLAIN plan and how to change the choices optimizer makes.

Utilizing arrays: modeling, indexing, and querying

Utilizing arrays: modeling, indexing, and querying

Arrays can be simple; arrays can be complex. JSON arrays give you a method to collapse the data model while retaining structure flexibility. Arrays of scalars, objects, and arrays are common structures in a JSON data model. Once you have this, you need to write queries to update and retrieve the data you need efficiently. This talk will discuss modeling and querying arrays. Then, it will discuss using array indexes to help run those queries on arrays faster.

Enterprise Architect's Perspective of Couchbase with N1QL

Enterprise Architect's Perspective of Couchbase with N1QL

Enterprise architects have to decide on the database platform that will meet various requirements: performance and scalability on one side, ease of data modeling, agile development on the other, elasticity and flexibility to handle change easily, and a database platform that integrates well with tools and within ecosystem. This presentation will highlight the challenges and approaches to solution using Couchbase with N1QL.

Deep Dive into N1QL: Power Features and Internals in 4.0

Deep Dive into N1QL: Power Features and Internals in 4.0

N1QL is a rich query language for JSON data. N1QL provides the following enhanced SQL statements: SELECT, INSERT, UPDATE, DELETE, MERGE. We’ll explain the advanced select-join-project-nest-unnest operations as well as data modification features in N1QL. We’ll also discuss basics of index selection and query planning in N1QL.

Introducing N1QL: New SQL-Based Query Language for JSON

Introducing N1QL: New SQL-Based Query Language for JSON

This session introduces N1QL and sets the stage for the rich selection of N1QL-related sessions at Couchbase Connect 2015. N1QL is SQL for JSON, extending the querying power of SQL with the modeling flexibility of JSON. In this session, you will get an introduction to the N1QL language, architecture, and ecosystem, and you will hear the benefits of N1QL for developers and for enterprises.