Category: N1QL / Query

Woman riding a horse in a barrel race as a metaphor for navigating SQL data challenges

Navigating the SQL Landscape for DBAs and Developers

This article briefly introduces the essentials of SQL – its meaning, definition, and application to different database technologies. We introduce many different types of systems that use SQL – from databases to event stream processing. What is SQL?  Define: SQL...

/ April 7, 2021
Baton hand-off, symbolizing the hand off from SQL to NoSQL

SQL to NoSQL: Automated Migration

SQL to NoSQL seems like a contradiction, but thanks to advances and innovations in Couchbase Server’s NoSQL database, it’s becoming easier. In this post, I’ll introduce you to a tool called SqlServerToCouchbase, an open-source attempt at an automated tool to...

/ March 2, 2021

Use cases and Best Practices for Distributed Transactions through N1QL

Does Couchbase support transactions? Yes! With 6.5, we introduced the ACID transaction support in Couchbase through the SDKs. The 1st question we got at the time from the customers that heard about it was: Is transaction support available through N1QL?...

/ February 24, 2021

Data Structures & Queries with Couchbase N1QL (SQL for JSON)

In the Data Structures for NoSQL Applications post, we used simplified JSON data access through native collections, maps, and more. This post demonstrates querying that data using higher-level N1QL queries, the SQL-based language for JSON. Developers can focus on managing...

/ January 27, 2021
JSON Data Modeling

A JSON Data Modeling Guide

When starting to learn about document databases, it’s nice to have a grip on JSON data modeling best practices. This will help you navigate the space and topics easier having an expanded vocabulary on the subject. Experience with a traditional...

/ January 20, 2021

Index Advisor Supports Self-Verification and Index Pushdowns

Index advisor for N1QL Statement (ADVISE statement ) is officially released in Couchbase Server 6.6. It is designed to make best efforts to provide global secondary index recommendation for each keyspace in the query which is better than all the...

/ January 19, 2021

Simplify Couchbase Analytics: User-Defined Functions (UDFs)

Introduction One of our exciting new features in Couchbase Server 7.0 Beta is support for User-Defined Functions (UDFs) in the Analytics Service. UDFs are reusable and parameterizable N1QL queries that can be used to modularize queries and increase code reuse....

/ January 4, 2021

N1QL User Defined Functions

Introduction Couchbase Server 6.5 introduced User Defined Functions as a Developer Preview feature. N1QL is primarily a declarative language – where you ask what to get, and the language works out for you the actual method. While declarative languages have...

Indexing Service Optimizations with Couchbase Collections

Couchbase Collections introduces the separation of the bucket data into logical scopes and collections, on top of the Couchbase JSON database. The separation allows the data to be separated out to different schema and tables, a concept that most RDBMS...

/ December 9, 2020

New in Couchbase Server 7.0: N1QL per request memory quota

Introduction Unlike other services, the N1QL service so far hasn’t offered the ability to size its memory footprint. The principal reason for this disparity boils down to one simple fact: while the bulk of the memory consumption for services like...