Category: N1QL / Query

FTS and N1QL: Improving Performance when Querying Multiple Arrays

FTS and N1QL: Improving Performance when Querying Multiple Arrays

Introduction Couchbase Full Text Search (FTS) is a great fit for indexing multiple arrays and executing queries with multiple filter predicates in arrays.  In this article, I’ll demonstrate the advantages of using FTS over GSI (Global Secondary Index) for array...

james.oquendo March 26, 2020
Couchbase for Oracle Developers – Part 4 : Data types

Couchbase for Oracle Developers – Part 4 : Data types

Link to the series home page: https://staging.couchbase.com/blog/couchbase-oracle-developers-part-1-overview/ As part of data remodeling, while moving from the relational model to the JSON model, you’ll have to consider the data type mapping. In Oracle, you’ll have to create and declare the types...

james.oquendo March 25, 2020
Part 2: N1QL: To Query or To Analyze?

Part 2: N1QL: To Query or To Analyze?

When you need to query documents using SQL, there are two options available in Couchbase. The Query service and the Analytics service. Our blog, N1QL: To Query or To Analyze? provides a detailed overview of both services. I highly recommend...

james.oquendo March 4, 2020
IN List Handling Improvements in Couchbase Server 6.5

IN List Handling Improvements in Couchbase Server 6.5

Introduction IN list is commonly used in N1QL queries. Couchbase Server 6.5 introduces a couple of enhancements in handling of IN list in N1QL queries. Handling of Large IN List Before Couchbase Server 6.5 N1QL handles IN list evaluation at...

james.oquendo February 17, 2020
ANSI JOIN Enhancements and  ANSI MERGE

ANSI JOIN Enhancements and ANSI MERGE

Introduction N1QL support for ANSI JOIN was first introduced in version 5.5. Currently there is a restriction in ANSI JOIN (version 5.5 and 6.0) in that the right-hand side of an ANSI JOIN must be a keyspace. This restriction will...

james.oquendo January 21, 2020
Simple dataviz with N1QL and Google Sheets.

Simple dataviz with N1QL and Google Sheets.

Do whatever it takes to present the data to aid analysis and thinking.  — Edward Tufte How do you create graphs like these if you don’t already have some ready-made cool dataviz tool? You can run queries to wrangle the...

james.oquendo January 7, 2020
Testing N1QL workloads with  Apache JMeter

Testing N1QL workloads with Apache JMeter

One of the key features that Couchbase provides for querying JSON data is a N1QL language. N1QL allows users to access and modify the contents of their JSON documents with familiar SQL statements. Quite often, during development phase of a...

james.oquendo October 2, 2019
Introducing FTS with N1QL

Introducing FTS with N1QL

Topics this article will cover What’s good with N1QL? What about FTS? But why FTS within N1QL? Basic N1QL+FTS queries Deploying N1QL+FTS Syntax(es) Abilities & limitations N1QL+FTS Internals Covered-index vs Non-covered-index queries More N1QL+FTS query examples What’s next? 1. Couchbase’s...

james.oquendo September 25, 2019
Window functions in Couchbase Analytics

Window functions in Couchbase Analytics

Co-author:  Till Westmann,  Senior Director, Engineering The bits for Couchbase 6.5, the upcoming release of Couchbase Server, are now available. The Analytics service, which supports efficient parallel query processing, has added support for support for window functions defined in the...

james.oquendo August 12, 2019
The Unreasonable Effectiveness of SQL in NoSQL Databases: A Comparative Study.

The Unreasonable Effectiveness of SQL in NoSQL Databases: A Comparative Study.

The business applications have requirements: take customer orders, deliver customer orders, track shipping, generate inventory report, end of the day/month/quarter business report, generate business dashboards and more.  These requirements evolve slowly. They remain even when you choose a NoSQL database....

james.oquendo May 26, 2019
Approaches to Query Optimization in NoSQL.

Approaches to Query Optimization in NoSQL.

A man returned home after walking around the globe for eleven years.  Next day, when he told his wife he’s going to the corner store, she asked him: “are you taking the short route or the long one?”. Queries can...

james.oquendo May 5, 2019
Couchbase’s N1QL Query Shatters the Limits of MongoDB™

Couchbase’s N1QL Query Shatters the Limits of MongoDB™

As NoSQL adoption grows, developers and enterprises alike require a general purpose database to replatform their mission-critical applications and services. These databases are no longer used only by backend services that need sub-second access to the data, but also by...

james.oquendo March 25, 2019