Query, Scale, Repeat

Querying with N1QL

N1QL enables you to query a document database without limitations and without compromise - sort, filter, transform, group, and combine data with a query. That’s right. You can combine data from multiple documents with a JOIN. That flexible data model you were promised? This is it. You’re no longer limited to “single table” and “table per query” data models.

N1QL is a declarative query language that extends SQL for JSON. However, developers can rely on native framework integration or a fluent API to build queries in addition to writing query statements.

You can improve query performance with secondary indexes. Want to create a bunch of indexes? Go for it. Want to create a compound index on multiple fields? Go for it. Worried about what will happen to query performance as the number of nodes increases? Don't. We implemented global secondary indexes. The key word being "global". A global secondary index is not partitioned. It's a whole index. After all, it's a lot faster to check a whole index on one node than it is to check a partial index on every node.

Multi-Dimensional Scaling

What if you decomposed a database into a set of services: one for querying, one for indexing, and one for storage? What if you could run different services on different nodes to not only avoid resource contention, but to optimize hardware? What if you could scale a single service?

You can. We call it Multi-Dimensional Scaling.

You can find out everything there is to know about Couchbase Server 4.0 here.

Mac OS X Installation Instructions

Locate and double click the download to unzip it.

Click and drag the enclosed Couchbase Server application to the Applications folder.
Your web browser should then open to the web console from which you can configure your new Couchbase Server installation.

Double click the Couchbase Server application in the applications folder.

Step two (optional) Install the Sample App

This sample application demonstrates how documents are queried by logging all queries to the console. You can learn more about the data model, application architecture, and queries in its documentation.