Powerful NoSQL queries as familiar as SQL queries
We used to call it N1QL, but it’s really SQL++
SQL++ is a SQL-based query language for JSON. Multiple Couchbase database services support SQL++ for executing industry-standard ANSI SQL syntax upon JSON structured data. There are many advantages to this approach including no learning curve for developers, familiar structure and common concepts like ACID transactions, hierarchical schema called “scopes,” joins across documents and collections, cost-based query optimization, and high-performance indexing alternatives. Couchbase SQL++ is supported by the Couchbase Query Service, Full-Text Search Service, and Analytics Service and can be embedded in applications via Couchbase SDKs. SQL++ is the easiest way for SQL developers to transition to NoSQL. In many cases, simple copy and paste of SQL queries will run as SQL++ queries. Take the tutorial to learn more.
Solve your toughest adoption and production challenges with an intuitive NoSQL query language, SQL++
High coding and migration cost
Most other JSON databases have limited SQL support, or none at all. To make matters worse, their languages are “imperative,” so the developer must specifically tell the database “how” to gather the data. This makes the migration of applications very expensive because you must rewrite the data access layer and retrain developers. It makes maintenance worse, too. SQL and SQL++, on the other hand, is a “declarative” language. Simply ask SQL++ what to gather, and the database does all the work.
Application performance changes with volume, and when the database lacks a sophisticated query optimizer. The Couchbase Query Service includes cost-based optimization to ensure the best performance, and collection-level processing queries of indexing, sharding, and more. You will notice a speed difference as you scale.
When you use multiple databases, such as key-value for session caching and documents for product catalogs, you create unnecessary complexity that can lead to expensive trouble. Data can become inconsistent and overly duplicated. It’s a maintenance and cost nightmare to manage multiple databases for one application.
Innovate, iterate, and scale apps faster
Unparalleled technology, from cloud to the edge
SQL++: SQL-like queries with the flexibility of JSON
Develop engaging applications with ease using a comprehensive and declarative JSON query language. Developers can rapidly adapt to changing business requirements using a schemaless JSON document store.
Customer success spotlight
DIRECTV, one of the world’s leading providers of digital television entertainment services, runs software to support 38 million customers globally on 3,000 channels. DIRECTV discovered Couchbase’s performance to be unparalleled and leverages SQL++ using Node.js.Learn more
Before switching to SQL++ and Couchbase, SQL was Cvent’s go-to for getting insights from data. Migrating proved to be a breeze and benefits accrued immediately. With SQL++, Cvent gained the ability to define their own data with schemaless data modeling and create their own queries using multiple indexing options. As a result, Cvent today uses Couchbase across 8 development clusters and 45 teams to develop and run hundreds of microservices.Learn more
By applying Couchbase’s SQL++ and Full-Text Search (FTS) over machine learning in the Google Cloud, Seenit provides its customers with an incredibly powerful search function that allows them to filter submissions by objects in the video, specific words or phrases in the audio, video and audio quality, sentiment, and many other attributes. SQL++ enables Seenit to sort, filter, transform, group, and combine data from multiple JSON documents with a single query.Learn more
Nielsen’s Answers on Demand (AOD) service delivers ratings data and other information for businesses in more than 100 countries. Nielsen currently uses Couchbase as a document store and heavily leverages SQL++ for big data analytics.Learn more
in response time
Related features and capabilities
Global Secondary Indexes (GSI)
Global Secondary Indexing (GSI) is a powerful solution that enables low latency queries for interactive applications. GSIs support collection-level processing and are attached to the document collections it has indexed.
Couchbase also includes Composite indexes, Array indexes, and an advice function that tells the developer what the best index is for the SQL++ query being evaluated.
Multi-dimensional scaling (MDS)
Scale out the service you need, when you need it. MDS guarantees the predictable performance of individual services deployed under Couchbase by delivering workload isolation of various microservices such as query, full-text search, analytics, and more.
Full-text search (FTS)
Liberate your JSON data with language-aware text searching that enables users to quickly obtain the most relevant documents based on scoring. As part of the Couchbase data platform, FTS keeps search indexes up to date in real time as documents change.
Use cases & solutions
Aggregate data collected from different sources in one platform to build a single view of your customer or business.
Catalog and inventory
Publish new product and inventory content in real time and scale to millions of products and requests per second to present the right data at the right time.
One platform to manage data from different sources, push it to the edge, and ensure it is stored securely and available online and offline.
IoT data management
Manage, support, and drive real-time data insights at the edge with embedded and cloud databases, sync, and guaranteed data availability.
Ready to create amazing customer experiences?
The easiest and fastest way to begin with Couchbase