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
1 answer

n1ql couchbase, Check last element in array matches a condition

I need to select the record where number value matching the last element in the numbers array in couch base n1ql query Check last element in array matches a condition { name: String, data: { dates: Array, numbers: Array } }
mac
  • 543
  • 1
  • 6
  • 17
1
vote
2 answers

Couchbase APIs, libraries or curl commands to copy data from one cluster to another

I want to copy my data from one cluster of Couchbase to another cluster either via curl commands or using SDK libraries. Could someone please let me know if is there any libraries/APIs available by which I can be do this. We need to copy the data…
1
vote
1 answer

Difference between node unresponsive and node failover in Couchbase

What is the Difference between node unresponsive and node failover in Couchbase while I was monitoring my cluster I can see one node is in unresponsive state what is the exact difference between both
1
vote
0 answers

How can I make an asynchronous API call in Java (Dropwizard framework) to update Couchbase records?

I have to update multiple records in Couchbase database. With some research I got to know that to do this I have to make an asynchronous call to database with batching. I can't update all the records in one go, so for this I have to make database…
1
vote
0 answers

Saving Enum name instead of value in couchbase

I am working on spring data couchbase application.In oracle its saving the enum with name but in couchbase its value. I want to save enum name in couchbase instead of its value. But i dont want to change this below existing code. Is there any way to…
1
vote
1 answer

Memory leak with Couchbase Python SDK 3.2.2 (or 3.2.3) and how to disable tracing

I'm trying to migrate from Couchbase 2.5.12 into 3.2.2 (or 3.2.3) but I'm getting a mem leak. I faced this same Problem with 2.5.12 and I was able to sort that problem by disabling tracing in the connection string like this:…
1
vote
2 answers

Couchbase n1ql - NEST foreign document using indexes

I'm trying to create a N1QL query that would return a list of clients and embed as well an array of API keys. Here is my setup: Bucket: { "Client-a3c1c7f8r89732": { "type": "Client", "id": "a3c1c7f8r89732", "name":…
Pierre Roudaut
  • 1,013
  • 1
  • 18
  • 32
1
vote
0 answers

IllegalStateException - JSON parsing failed

I have a json in the below format which was shared by a different team. I need to manipulate this JSON for one of my requirements. JSON format which I…
Aishu
  • 1,310
  • 6
  • 28
  • 52
1
vote
1 answer

Request couchbase with two where conditions

How is it possible to write a couchbase request in order to choose the first condition in where if it is defined or the second one if the first one is undefined. I tried somethings like : SELECT id FROM auto as a WHERE…
Mo0nKizz
  • 149
  • 7
1
vote
0 answers

How to escape double quotes in java json?

How to escape double quotes in a string at runtime for parsing json? Basically, I have a JSON. And when I try to parse it, I'm getting JSON parse exception because of the double-quotes. And there are many files like this. This is just an…
Aishu
  • 1,310
  • 6
  • 28
  • 52
1
vote
2 answers

How datagrip gets all the documents from a couchbase bucket?

Running GET KEYS FROM BucketName query on datagrip results with all the keys from the bucket. However, when querying the same query within the couchbase ui or java sdk results with syntax error - at KEYS. How does datagrip be able to get all the…
ihsancemil
  • 432
  • 5
  • 16
1
vote
2 answers

Want to get the entire document in couchbase after applying group by clause

I have multiple json document like this { "event": "eb1518fb-81d1-49aa-9854-405267a7828f", "identityId": "5eb44b44-d5ce-4473-815c-591a4ff1bea3", "bookingCode": "ABCDE", "status": "SUCCESS", "clientId": "DESKTOP", "created":…
Aishu
  • 1,310
  • 6
  • 28
  • 52
1
vote
1 answer

Spring Data Couchbase: Count() nor findAll() does not work but findBy() works

I am currently setting up a Rest API server using Spring Boot (v2.5.5), Spring Data Couchbase (v4.2.5) and Couchbase (v6.6.1). I get a really strange behavior when requesting count() -> 0 findAll() -> [] Whereas findById() is returning a…
EddyA
  • 31
  • 4
1
vote
1 answer

Extract document from couchbase collection using python

I have a bucket 'A', with scope 'B' and collection 'C'. How can i retrieve all documents from this collection from couchbase? import pandas as pd from couchbase_core.cluster import PasswordAuthenticator from couchbase.cluster import Cluster,…
SoKu
  • 117
  • 7
1
vote
2 answers

Couchbase connection pool

I am building an application using couchbase as my primary db. I want to make the application scalable enough to handle multiple requests at times concurrently. How do you create connection pools for couchbase in Go? Postgres has pgxpool.