Tutorial tag: SQL++ (N1QL)

  • Building an AI Agent Using Google ADK with Couchbase MCP Server

    View Source This notebook demonstrates how to build an intelligent AI agent using Google’s Agent Development Kit (ADK) that can interact with a Couchbase database. The key to this interaction is the Model Context…

    22 MIN READ
  • Build an Airline Dashboard with ToolJet and Couchbase

    Overview In this tutorial, you will build an Airline Dashboard — a fully functional internal tool that lets you browse, search, create, edit, and delete airline records stored in Couchbase. You’ll use ToolJet’s visual…

    11 MIN READ
  • Tuning Tips and Advice

    Tip 1: Use USE KEYS If you know the Document Id/Key of the document, you should leverage the USE KEYS clause. This bypasses the Index Service (hence bypassing network, scans, index results and processing)…

    41 MIN READ
  • Understanding Covering Indexes and TTLs

    When using covering indexes, there are some important considerations in-terms of how your N1QL queries are constructed to ensure they do NOT return stale data from your indexes(GSIs). To better understand this concept, it’s…

    3 MIN READ
  • Understanding Query Workflow and Optimization

    Applications and their drivers submit the N1QL query to one of the available query nodes. The Query node parses and analyzes the query, uses metadata on underlying objects to figure out the optimal execution…

    6 MIN READ
  • Understanding Index Scans

    FILTER, JOIN, and PROJECT are fundamental operations of database query processing. The filtering process takes the initial keyspace and produces an optimal subset of the documents the query is interested in. To produce the…

    3 MIN READ
  • Identifying the Top Slow Queries

    The top slow queries can be identified by querying the system catalog using the following select statement (available on version Couchbase 4.5 and above) The system:completed_requests catalog maintains a list of the most recent…

    5 MIN READ
  • Understanding Cardinality and Selectivity

    Cardinality and selectivity play a crucial role in index tuning and optimization as they can provide measurable insights into your data set and effectiveness of the index, pointing you to where specific optimizations can…

    5 MIN READ
  • Operators Guide

    #operator Usage Description PrimaryScan Scan Scans a primary index v1 (Pre CB 5.50) PrimaryScan3 Scan Scans a primary index v2 (CB 5.50+) ParentScan Scan Used for UNNEST. Treats the parent object as the result…

    6 MIN READ
  • Understanding an Explain Plan

    Plans are built from algebras using a visitor pattern. A separate planner/optimizer is used for index selection. You can view the explain plan by prefacing a query with the EXPLAIN keyword, clicking the “Explain”…

    4 MIN READ
  • Learn Couchbase Lite Batch operations with Kotlin and Jetpack Compose

    Introduction In this part of the learning path, you will be working with the “Audit Inventory” demo app app that allows users to log in and access the developer screens in order to add…

    13 MIN READ
  • Learn Couchbase Lite SQL++ Querying with Kotlin and Jetpack Compose

    Introduction Couchbase Mobile supports SQL++ query strings using the SQL++ Query API. SQL++ is Couchbase’s declarative query language that extends SQL for JSON. The structure and semantics of the query format are based on…

    14 MIN READ
  • Full Text Search with Python

    In this tutorial, you will how to create queryable full-text indexes in Couchbase Server. Introduction You can use the Full Text Search service (FTS) to create queryable full-text indexes in Couchbase Server. Full Text…

    8 MIN READ
  • SQL++ Querying with Python

    In this tutorial, you will how to execute SQL++ (formerly N1QL) queries with positional and named parameters, with and without options, how to use scan consistencies, and the Async APIs. Introduction Our query service…

    9 MIN READ
  • Creating Analytics User Defined Functions with Python

    In this tutorial, you will learn how to create User Defined Functions (UDF) with Python to include custom business logic inside your queries while querying the data using the Analytics service in Couchbase. Note:…

    13 MIN READ

Leave database sprawl in the past

Every stack addition means another bill, and more to manage. Estimate how you could save in 2 minutes.