DG-banner-N1QL-01

DOCS

Learn the fundamentals of SQL++ queries for JSON

Use powerful SQL with Couchbase

SQL++ is SQL for JSON with industry-standard ANSI syntax. SQL++ supports common concepts like ACID transactions, hierarchical schema called scopes, and joins across documents. It also takes advantage of our patented cost-based optimization.

Use SQL++ to overcome tough database language challenges

High-Cost

Cost-efficient

Changing queries to a new language is costly. SQL++ meets ANSI 92 standards, which makes SQL migration to Couchbase faster and easier.

cb-icon-performance-copy

Fast

Writing queries can be complex and lead to slow speeds if executed incorrectly. Our cost-based optimizer (CBO) ensures the best performance.

failover

Consistent

Using multiple databases for an application leads to data inconsistency. Couchbase can support all your use cases with a single multi-model database.

cb-icon-SDK

Familiar

Learning a new proprietary query language for a database is challenging. SQL++ allows developers to use their existing skills in ANSI SQL for JSON.

SQL++ database language key capabilities

SQL++ provides teams with powerful ways to interact with data and develop faster queries to support critical applications.

high-availability-3

Global Secondary Indexes (GSI)

GSIs enable low-latency queries for interactive applications. They support collection-level processing.

cb-icon-indexing

Indexing innovations

Couchbase includes composite and array indexes and a function that identifies the best index for SQL++ queries.

mds-server

Multi-dimensional scaling (MDS)

MDS delivers workload isolation of various microservices so you can scale out the service you need when you need it.

fts (2)

Full-text search (FTS)

Built-in language-aware text searching enables users to quickly obtain the most relevant documents based on scoring.

SQL++: SQL-like queries with the flexibility of JSON

Develop engaging applications with ease using a comprehensive and declarative JSON query database language. Developers can rapidly adapt to changing business requirements using a schemaless JSON document store.

BF-sdk-box

Query without compromise, with capabilities you expect from SQL queries

SQL++ is a high-performance NoSQL query language with built-in optimizers and indexer enablers to support millions of concurrent interactions with sub-millisecond latencies. Couchbase’s multi-dimensional architecture uses SQL++ across its query, index, search, and analytics services, partitioning to elastically scale data capacity and deliver accelerated query performance.

BF-manage-and-store-data-locally-1

Familiar tooling makes query development and optimization a breeze

SQL++ is accessed through the Query Workbench and has a built-in index advice feature that tells the developer what indexes are needed to optimize their query. Flex Index uses the inverted search index from the Full-Text Search Service for complicated query predicates. Couchbase also includes a cost-based optimizer and JavaScript-based user-defined functions to manipulate the resulting data.

What customers are saying

Media-Customer-1
“We quickly realized that Couchbase offers the flexibility to search with a language that looks 99% the same as SQL. So for all developers, it was an easy transition.”
Fidencio Garrido, Principal Engineer, DirecTV
Swarm-Quote
“What Couchbase has done with SQL++ has been one of the most innovative things done in the database space in decades.”
Bill House, VP of Engineering, SWARM Engineering
Media-Customer-3
“We extensively use SQL++ for structured querying, and with full-text search we can seamlessly search and derive relevance-based intelligence.”
Dave Starling, CTO, Seenit
Media-Customer-4
“We’re able to put data to work in a more efficient way, and we’ve built a strong foundation for the future.”
Arvind Jade, Architect Lead, Nielsen

Try SQL++ in Capella

Get hands-on with SQL++ in the Capella UI query workbench.