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

Efficient way to read all the data from a large couchbase bucket

We have about 80M product in a bucket in couchbase and we need to daily read all data from it and do some calculations on them. I am using select queries with 512 limit on each select and a for while to read data from each collecion but sometimes I…
Obtice
  • 1,205
  • 3
  • 18
  • 44
1
vote
0 answers

What is the correct connection string?

I have a couchbase server behind a NGINX reverse proxy (behind the subpath /db). How do I specify the correct connection string in Python? I tried from couchbase.cluster import Cluster, ClusterOptions from couchbase.auth import PasswordAuthenticator…
Ruediger Jungbeck
  • 2,836
  • 5
  • 36
  • 59
1
vote
1 answer

How to query couchbase with multiple values using spring-data-couchbase

Hi I have an endpoint like /findBy and it can take several query params similar like ; findBy?color="blue"&size="big"&city="ny"&country="usa" How can I have such query in repository layer using spring-data-couchbase. Normally if it would something…
erondem
  • 482
  • 1
  • 11
  • 24
1
vote
0 answers

Out of memory error on initializing Couchbase java Client

Facing out of memory error on initializing Couchbase Java Client. The issue happens in the context of running Test cases in the Gradle build. It doesn't seem to be happening when running individual test cases. It seems to be happening on running all…
1
vote
0 answers

Cannot start Couchbase on Docker

I've a Fedora machine on AWS EC2 (Fedora 34 (Cloud Edition)), with Couchbase 6.6.0 on Docker (latest) and until yesterday it worked well. From today (after dnf update) I can't connect to 8091 port. I also tried do upgrade to 7.0.2, it does not…
user5919369
  • 111
  • 6
1
vote
1 answer

How can i access a private property in Object

I am using couchbase PHP Sdk to query some data and they made some changes from version 2.x to 3.x. Before i could get some metrics easily now I get the error> It complains that I cant access private value. Uncaught Error: Cannot access private…
MisterniceGuy
  • 1,646
  • 2
  • 18
  • 41
1
vote
2 answers

How to write a join query which accepts placeholders (query params) using couchbasetemplate from Spring Data Couchbase 4.X version

I need to get a set of data from 2 collections. Employee {"id":"1234", "name":"Smith"} Salary{ "employeeId":"1234", "Salary":"10000"} I am creating an utility method where I have to fetch the data by joining these two tables and pass the…
1
vote
1 answer

Is there a way to directly map to struct the result of Couchbase N1QL query in Go

When I implement a query by selecting all the elements using * operator, the query is not mapped to the struct. query := gocb.NewN1qlQuery("SELECT * FROM `item-bucket` WHERE itemBarcode=$1") queryParams = append(queryParams, itemBarcode) rows, err…
hakansander
  • 337
  • 4
  • 13
1
vote
0 answers

Storing hourly data in Kafka | Issue with designing consumer for an existing system

I have to replace Couchbase with Kafka in an existing system. In existing system, docs are being written to Couchbase and a java program reads from it, aggregates data in-memory and stores the data in SQL at the end of an hour. More details in this…
Udit Jindal
  • 151
  • 8
1
vote
1 answer

How to query a field inside array sub-document using ottomanjs using query builder

I could't able to query using arrays sub-document field using ottomanJS and I cant find any documentation for query building for array sub-document, any help would be appreciated. import { Schema, Query, getDefaultInstance } from "ottoman"; const …
1
vote
2 answers

Select query is working but insert query is not in Python with Couchbase library

I'm trying to do some remote operations with Couchbase Python library. I have written a small code piece to test if it is working as intended. server_name = 'xxxxxxxxxx' bucket_name = 'vit_app_clob' username = "Administrator" password =…
1
vote
2 answers

Couchbase iterate on properties and get value

I have a couchbase document like : { "data": { "author1": { "title": [ "1", "2" ] }, "author2": { "title": [ "3", "4" ] } } } And I would like to get with a N1QL request…
Mo0nKizz
  • 149
  • 7
1
vote
0 answers

How to do batch(update with select) processing in Couchbase by using AsynCluster and without using reactive in couchbase SDK 3.x?

I have a requirement where I want to update 1000 records in the Couchbase and get the ids of the updated record back. I don't want to use Reactive (project reactor) as mentioned in the official document of couchbase SDK 3.x. there is one more…
1
vote
1 answer

Couchbase model when document can be huge

We are trying to figure out which data model would be best for saving data to Couchbase when size of the document can get very large. Save all the data in a single document, with the possible problem of reaching the maximum allowed by Couchbase…
1
vote
1 answer

Combining fields in a Couchbase Spring-Data Query

I have a couchbase query that needs to search for a name, the object being searched stores firstName and lastName fields. My search query may be something like "Bob Smith", I have tried combining the fields in the query however this does not work…
user15613889