Questions tagged [couchbase]

Use for Couchbase Server or Couchbase Capella only (NOT CouchDB or Couchbase Lite). Couchbase Server is a distributed database engineered for performance, scalability, availability and flexible query. It enables developers to build applications easier and faster with both the power of SQL and the flexibility of JSON.

Capella is Couchbase's DBaaS (Database-as-a-Service). It is fully managed, hosted, patched, and upgraded by Couchbase.

Developed as an alternative to traditionally inflexible SQL databases, the Couchbase NoSQL database is designed to help developers solve real-world problems and meet high scalability demands along with unparalleled performance.

Developer features

  • Enhance application development agility by capitalizing on a declarative query language, full-text search, adaptive indexing, and seamless data mobility full-text search, adaptive indexing, and seamless data mobility
  • Achieve fast, efficient bi-directional synchronization of data from the edge to the cloud and between clusters
  • Build seamless data sharing across users and devices – online and offline
  • Consistent programming model for building web and mobile apps

Couchbase is designed to help enterprise applications perform well (up to 10-20x faster than competition) while also scaling to match data volumes. The use of in-memory datasets allows you to process and optimize queries and indexing processes. Coupled with the features of Couchbase Mobile, applications can continue to operate even in offline mode.

Management Tools

  • Streamline configuration and setup, take advantage of multi-cloud agility
  • Built-in enterprise-grade security for the full stack
  • Easily enable cross datacenter replication between clusters through a convenient UI

Useful links

3998 questions
1
vote
0 answers

NestJs and Couchbase integration

I'm looking for information and code examples about how to integrate NestJs with a Couchbase database. I'd like to explore the options of using either the Couchbase SDK directly or the Ottoman ODM Regards,
Fabrice G.
  • 140
  • 1
  • 10
1
vote
2 answers

How to update a specific field in all the documents of a bucket using Couchbase UI

I have a bucket in couchbase which has many documents for example { "id":"1", "isAvailable": false }, { "id":"2", "isAvailable": false }, { "id":"3", "isAvailable": true }, { "id":"4" } Now I want to iterate through all the document…
Anil Kumar R
  • 283
  • 1
  • 4
  • 12
1
vote
1 answer

NullPointerException when bucket.defaultCollection() is called Couchbase SDK3

Getting NullPointerException when trying the below code public class SalesCouchbaseDao { @Resource private Cluster cluster; @Autowired @Qualifier("salesBucket") private Bucket bucket; private final Logger LOG =…
1
vote
2 answers

N1Ql query grouping on distinct values with different keys

I have ~7 million docs in a bucket and I am struggling to write the correct query/index combo to prevent it from running >5 seconds. Here is a similar scenario to the one I am trying to solve: I have multiple coffee shops each making coffee with…
Johan Ferreira
  • 515
  • 4
  • 15
1
vote
1 answer

Migrating to Couchbase SDK3.2 from 2.7. How to use Flux for it

I am currently having this code to get Couchbase JsonDocument using the below code. I am trying to Migrate to Couchbase SDK3.2 and in 3.2 SDK Obseravable and JsonDocument is not being used. How can i use Flux to achieve the below code ? …
1
vote
1 answer

Couchbase unable to retrieve document No index available Code 4000

I have a bucket in Couchbase called mybucket. When I select Documents and then choose my bucket, It has an option to retrieve the documents. When I choose the first one, the web platform of Couchbase shows the content of that document to me: { …
aminrd
  • 4,300
  • 4
  • 23
  • 45
1
vote
1 answer

How to multiple update a nested array within document at couchbase?

I have a bucket called chat which includes document model like { "id": "50542400778551298_5001_abcdef", "customer": { ... }, "seller": { ... }, "complaints": [], "messages": [ { "id":…
Abdulsamet ILERI
  • 155
  • 2
  • 10
1
vote
0 answers

Couchbase attempt context transaction not working as expected

When there are multiple requests for updating same document in a AttemptContext transaction block, data becomes inconsistent because of concurrent threads trying to update the document. Also a warning…
1
vote
2 answers

Spring batch with couchbase

I have requirement of reading millions of data from couhbase and process it, I want to create spring bootproject with spring batch, but there is no direct support provided in spring batch as CouchbaseItemReader, can any one help if they have…
1
vote
0 answers

Python SDK to locally hosted Kubernetes Couchbase

in other thread I made I asked for the solution to a problem regarding connecting to Couchbase. From then, I've experimented with other approach. Carefully following every step in Couchbase documentation, I have managed to setup a Couchbase cluster…
1
vote
1 answer

How to setup a connection between Python Couchbase SDK and containerized Couchbase nodes?

I want to have the following setup: 3 Couchbase nodes, each running on a separate container, all in the same cluster Python application running in another container (querying, inserting, deleting data from the Couchbase cluster) What I managed to…
1
vote
0 answers

Why do I get `[Error: ambiguous_timeout]` when trying to batch multiple inserts?

I am using the Couchbase NodeJs SDK. I am trying to batch multiple inserts into Couchbase from an array by doing: import { connect } from "couchbase"; const cluster = await connect('...', { username: '...', password: '...', } …
1
vote
1 answer

How to map nested array items with N1QL?

I have documents in a bucket called blocks in the following format: { "random_field": 1, "transactions": [{ "id": "CCCCC", "inputs": [{ "tx_id": "AAAAA", "index": 0 },{ "tx_id": "BBBBB", "index": 1 }] …
1
vote
1 answer

Connection issues when using newer docker compose versions with Couchbase

Im having trouble setting up a local multimode Couchbase cluster via docker compose. I am using a docker compose file to setup 3 nodes on my local machine. It works fine with the old docker compose style but when using newer ones I can't connect to…
Jonathan D
  • 11
  • 3
1
vote
1 answer

Couchbase MuteteInResult always returns Index 0 is invalid error

In couchbase java sdk I am trying to change a Boolean field in database. I am trying to do as following: public boolean changeDataFetchOrder(String caseId, String taskId, boolean isRandom) { var searchId = "case" + ":" + caseId + ":" + taskId; …
erondem
  • 482
  • 1
  • 11
  • 24