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

IF statement in Couchbase Map of view - I'm sure I'm missing something simple

I'm trying to limit the map in my view to a specific set of documents by either having the id "startsWith" a string or based on there being a specific node in the JSON> I can't seem to get a result set once I add an IF statement. The reduce is a…
1
vote
1 answer

Get top rows by "category" from a collection

I am using Couchbase and N1QL. Let's say I have a table of products. Products have a categoryId and a price among other attributes: id name categoryId price 1 product 1 cat1 5 2 product 2 cat2 100 3 product 3 cat1 25 I know how to…
DiegoFrings
  • 3,043
  • 3
  • 26
  • 30
1
vote
1 answer

Unable to read Map field from couchbase using spring data couchbase

Facing issue while loading document with Map type in my model. protected Map attributes; while loading data from couchbase getting Basic type must not be null! error. is there any way we can load such attributes from…
user3274140
  • 123
  • 3
  • 13
1
vote
1 answer

what is view in couchbase

I am trying to understand what exactly couchbase view is used for, I have gone through some materials in docs, but the 'view' concept does not settle me quite well. Are views in couchbase analogues to views in view in…
kuhajeyan
  • 10,727
  • 10
  • 46
  • 71
1
vote
0 answers

Nanomsg gives signal 6 abort during fetching from couchbase

I am getting a signal 6 error when i am trying to fetch data from couchbase, this occurs at erratic intervals. I am using version 1.1 and from the code i can see if poll returns value less than 0, errno_assert is being triggered which crashes the…
1
vote
0 answers

Stream N1QL query results in couchbase

My N1QL query returns around 3.5 million documents. Is there a way in which I can stream those documents to the client? I see there is a kafka connector available in couchbase but seems like it works on DCP wherein all the mutations to the documents…
1
vote
0 answers

Spring Data couchbase find by subdocument Element

I have this model: public class Person { @Id String id; @Field Address address; } public class Address { @Id String id; @Field String contry; //.. } I Use this repositry with the N1QL query it's doesn't work. @Collection("personn") public…
1
vote
1 answer

Creating index in couchbase

System I have not created any bucket so started creating bucket. Bucket configuration is listed below. I added a document Now i tried to run n1ql command and it give me following error. [ { "code": 4000, "msg": "No index available on…
Rahul
  • 1,858
  • 1
  • 12
  • 33
1
vote
2 answers

How to get particular fields only from array

I have [ { "some-app": { "name": test, "age": "34", "company": [ { "year": "2021", "pa_flag": "N", ... }, { "year": "2022", "pa_flag": "Y", …
Santhosh
  • 9,965
  • 20
  • 103
  • 243
1
vote
0 answers

CPU load of JSON export within Docker container

I have a Couchbase instance running as container. I'm thinking on exporting a bucket from there by cbexport. The thing is that the bucket has 3M documents and it's size is approximately 2GBs and I'm not sure if it's going to be easy for CPU and RAM…
1
vote
1 answer

how to save documents to multiple buckets in reactive couchbase world

I am trying to load multiple buckets which is working fine using below code: @Configuration @EnableReactiveCouchbaseRepositories("com.abc.couchbase.repositories") class ReactiveCouchbaseConfiguration extends AbstractCouchbaseConfiguration…
1
vote
0 answers

Couchbase Server Container, inside of a Linux(Centos) container fails to connect

I have created a Linux Centos container through the following Dockerfile: FROM centos RUN cd /etc/yum.repos.d/ RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* RUN sed -i…
shaped
  • 11
  • 1
1
vote
1 answer

Docker image for Nodejs and Couchbase SDK

So we have a nodejs micro-service using the NodeJS Couchbase SDK 3.2 We are trying to build a minimal docker image for our App using the Alpine base image but it seems the sdk needs more than what we have added to our base image. Here is our…
SpartanX1
  • 201
  • 2
  • 8
1
vote
0 answers

How to perform “Document Access Removal Behavior”

I went through this document, but unable to remove document access on the sync gateway. FYI: I'm using Couchbase Lite 2.8.6 on the mobile (Xamarin SDK) Document { "channels": [ "3a7c15ba2241" ], "docType": "logentry", "creator":…
TheDeveloper
  • 1,127
  • 1
  • 18
  • 55
1
vote
1 answer

Couchbase: How to remove channel access for a document through Sync function

I'm new to couchbase. I want to update channels for some of the documents through sync functions. But right now, it is not updating but adding an extra channel to the document's meta but not removing the existing channel. Can anyone suggest how I…
TheDeveloper
  • 1,127
  • 1
  • 18
  • 55