The N1QL Query Language

  • David Ostrovsky
  • Mohammed Haji
  • Yaniv Rodenski

Abstract

As you’ve seen in the previous two chapters, you can store and retrieve documents very quickly with key-based operations and perform some pretty complex queries and aggregations with views. However, even with these two mechanisms, you are limited to finding known keys and searching in predefined indexes within a single bucket. You can’t perform ad hoc queries programmatically, nor can you search across multiple buckets. This is where N1QL comes to the rescue! N1QL (pronounced “nickel”) is a new query language with a familiar, SQL-like syntax. When we wrote the first version of this book, it was only offered as a developer preview, but now Couchbase 4.0 is finally out, so we can talk about the real deal.

Keywords

Query Language Execution Plan Primary Index Index Service Query Service 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© David Ostrovsky, Mohammed Haji, and Yaniv Rodenski 2015

Authors and Affiliations

  • David Ostrovsky
    • 1
  • Mohammed Haji
    • 1
  • Yaniv Rodenski
    • 1
  1. 1.NetenyaIsrael

Personalised recommendations