Tag: query

Migrating Data from MongoDB to Couchbase, Part 2

Migrating Data from MongoDB to Couchbase, Part 2

Prolog The previous article provided details on how to migrate a MongoDB data set to Couchbase Server. This article shows you how to use the Couchbase SDK to access the data via a Java console application. Code snippets show how...

Index Advisor Service for N1QL (June refresh)

Index Advisor Service for N1QL (June refresh)

This is our June drop for Index Advisor service for N1QL after fixing some of the bugs that were found after our last refresh in May. We plan to keep improvising the Index Advisor service(What is it?). The fixes in...

Kamini Jagtiani June 15, 2020
Flexible Query & Indexing for Flexible JSON Model.

Flexible Query & Indexing for Flexible JSON Model.

Use N1QL when you’re in a JSON pickle. — Confucius For the JSON data model, the advice is to think of collections as tables, JSON document as denormalized rows and field names as columns – roughly. All this holds in...

Keshav Murthy April 13, 2020
FTS and N1QL: Better MongoDB in Operator Performance Querying Multiple Arrays

FTS and N1QL: Better MongoDB in Operator Performance 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...

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...

Infosys “OpenHack” Development Program Features Couchbase

Infosys “OpenHack” Development Program Features Couchbase

Couchbase is expanding its partnerships with industry-leading global systems integrators and regional solution providers.  Through these partnerships, Couchbase’s unique capabilities can be delivered to our global footprint of enterprise customers. We collaborate closely with our Strategic Alliance partner Infosys to...

Less Is More: Why Use a Cost-Based Optimizer?

Less Is More: Why Use a Cost-Based Optimizer?

Less is more.  — Ludwig Mies van der Rohe There is no truer statement on the goals of a query optimizer. Do less: Less memory, less CPU, less disk, less IO, less instructions, less partitions, less overflow. Less everything for...

Keshav Murthy September 7, 2019
Index Advisor For Query Workload

Index Advisor For Query Workload

Overview As the second feature of Index Advisor released in Couchbase server 6.5 (Developer Preview), Advisor function extends the scope from advising on single query to providing index recommendations for query workload and support on session handling. In this article,...

Chang Liu August 15, 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...

Index Advisor for N1QL Query Statement

Index Advisor for N1QL Query Statement

Overview Index advisor is introduced in Couchbase server 6.5 as a developer preview feature. It targets at providing secondary index recommendation to help DBAs and developers optimize N1QL query performance. This version is rule-based, in which the index candidates will...

Chang Liu August 9, 2019
Cost Based Optimizer for Couchbase N1QL (SQL for JSON)

Cost Based Optimizer for Couchbase N1QL (SQL for JSON)

Authors & Engineering Team: Bingjie Miao, Keshav Murthy,  Marco Greco, Prathibha Bisarahalli. Couchbase, Inc.  A rule-based optimizer knows rules for everything and cost for nothing – Oscar Wilde Abstract Couchbase is a distributed JSON database. It provides distributed data processing,...

Keshav Murthy August 7, 2019
The Unreasonable Effectiveness of SQL in NoSQL Databases

The Unreasonable Effectiveness of SQL in NoSQL Databases

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. On...

Keshav Murthy May 26, 2019