Skip to main content

The N1QL Query Language

  • Chapter
Pro Couchbase Server

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 49.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2015 David Ostrovsky, Mohammed Haji, and Yaniv Rodenski

About this chapter

Cite this chapter

Ostrovsky, D., Haji, M., Rodenski, Y. (2015). The N1QL Query Language. In: Pro Couchbase Server. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-1185-4_6

Download citation

Publish with us

Policies and ethics