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

Trying to create partition index but creating replica index in Couchbase Why?

I'm trying to create a partitioned index using the below query in Couchbase CREATE INDEX adv_firstOpen ON data(state, name, zip, status) WHERE type = 'Event' and name = 'firstOpen' WITH {"num_partition":4, "nodes":["node1:9001", "node2:9001",…
KARTHIKEYAN.A
  • 18,210
  • 6
  • 124
  • 133
1
vote
0 answers

Spring Webflux - reactive couchbase - pagination response with total records, page number, page size, etc

I'm using Spring Webflux & reactor, Java 11, Spring boot 2.4.5, Spring 5.3.6, spring-boot-starter-data-couchbase-reactive 2.4.5 versions for this reactive application. Use case: Website wants data in pagination format (to display total number of…
1
vote
1 answer

Are documents removed from a couchbase view if the data changes?

My understanding is that Couchbase views are built incrementally, but I can't seem to find an answer to whether a document can exist in a view multiple times. For example, say I want to create a view based on an updatedAt timestamp, that is changed…
1
vote
2 answers

How to find all the documents in a table which have a given string input as one of the string in list of string column couchbase repository

I wanted to know is there any way to find all the documents in a table which have a given string input as one of the string in list of string column couchbase repository @Data @Document @AllArgsConstructor @NoArgsConstructor public class User { …
Mr.Code
  • 19
  • 1
  • 5
1
vote
0 answers

Cannot connect to Couchbase Server on Debian

When I first installed Couchbase on Debian I could open localhost:8091 but after a restart of my computer it isn't possible anymore. I made sure the server is running with systemctl status couchbase-server. I can also exclude that a firewall is the…
wileni
  • 25
  • 7
1
vote
0 answers

Upgrading the Couchbase Java SDK from 3.0.9 to 3.1.2 creating the issue (DocumentExistsException: Document with the given id already exists)

Caused by: java.util.concurrent.CompletionException: com.couchbase.client.core.error.DocumentExistsException: Document with the given id already…
shagun
  • 63
  • 1
  • 5
1
vote
1 answer

Couchbase N1QL nested json query with variable key

I have documents. How can I write a query with nested json field? Query: Count value greater than 3 output: doc-1 and doc-3 Doc-1 "1": { "count":4, "name": "pen" } Doc-2 "2": { "count":1, "name": "eraser" } Doc-3 "3": { …
ceb
  • 29
  • 2
1
vote
1 answer

how to add array of object in database using couchbase for item without losing other data

like this { id:1, name:john, role:[ {name:boss, type:xyz}, {name:waiter, type:abc} ] } i want to add array of objects to "role" without losing other data, but new data should add to array as a objects. i have tried…
Payal
  • 11
  • 3
1
vote
0 answers

Return Flux JsonObject from N1QL query output

I am trying to execute a N1QL query using the @Query annotation as below: @Query(“SELECT META().id as __id, META().cas as __cas, user_id, firstname, lastname, city, phonenumber, email, postalcode FROM userData where user_id= $1”) Flux
Jenny
  • 355
  • 1
  • 2
  • 10
1
vote
0 answers

Is it possible to fetch NRU value per document in Couchbase client SDKs?

As pointed out in the documentation, Couchbase ejects documents from memory according to its NRU value : Couchbase - Not Recently Used (NRU) Items I wonder if it is possible to get NRU value of the document somehow (API,etc)?
uahakan
  • 576
  • 1
  • 6
  • 23
1
vote
0 answers

Couchbase: How to flush memcached bucket with N1QL?

I have a memcached bucket that I want to flush with a query. DELETE FROM my_memcached_bucket; Running the query above returns an error This bucket type is not supported memcached. How can I clean everything from my_memcached_bucket inside of the…
Vitalii
  • 10,091
  • 18
  • 83
  • 151
1
vote
0 answers

How to deploy spring boot application using couchbase on GCP

I have created a spring boot app, and using couchbase buckets as database, I want to deploy my docker image of application on Google kubernetes engine. But I don't know how to deploy the buckets on Google cloud. Please help
1
vote
0 answers

how to chain the calls

My question must be so basic but any help is appreciated I have a object like below { "type":"type_value", "fruits" :[{"amt": 5},{"amt": 10}], "shops" : [{"location": "X"},{"location": "Y"}] } I am using Spring WebFlux and…
Satya
  • 39
  • 5
1
vote
1 answer

Nested N1QL Update Query

I searched some prior threads, but can't quite figured out what I'm doing wrong based on how I've implemented my N1QL update query for Couchbase. The query I'm running to select my target updates is working fine: SELECT p FROM `NoSQLDB` AS c UNNEST…
Aaj
  • 259
  • 3
  • 16
1
vote
0 answers

Couchbase - Autonomous Operator: Chown: changing ownership of ‘var/lib/couchbase/inbox’: Read-only file system

I have set up my CB cluster following this tutorial https://www.youtube.com/watch?v=HMIX4Aob_8Q&ab_channel=Couchbase. Everything is working well (seemingly), the DNS records are being updated correctly, but all the Couchbase pods are stuck at…
Sthe
  • 2,575
  • 2
  • 31
  • 48
1 2 3
99
100