Deep Dive into N1QL: Power Features and Internals in Couchbase Server 4.0
Abstract: 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.
------------- Take aways
Query engine designed for performance on scale-out/distributed
Completeness of the N1QL Language – SQL and enhanced for JSON (flexible data model)
--------------
Simple One media installation of the cluster.
90 seconds to install!
Data-parallel — Query latency scales up with cores
Memory-bound
PrimaryScan
Equivalent of full table scan in RDBMS
Uses the primary index to scan from start to finish
Equivalent of full table scan in RDBMS
Data-parallel — Query latency scales up with cores
Memory-bound