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

How to solve LCB_ERR_AUTHENTICATION_FAILURE (206)

Trying to do CRUD functionality with Couchbase 3.1 C SDK but keep encountering LCB_ERR_AUTHENTICATION_FAILURE (206) errors. I believe connection to bucket and cluster is fine but when trying to do upsert or any similar CRUD functionality,…
couchbasec
  • 31
  • 2
1
vote
1 answer

What is the key and value doing in the Couchbase C SDK’s Hello World example?

In this link: https://docs.couchbase.com/c-sdk/current/hello-world/start-using-sdk.html#hello-couchbase I see this code example to use Couchbase SDK below , but what are the key and value pointers representing? Is the key supposed to be the document…
1
vote
1 answer

Couchbase N1QL query to find document that has a field value containing the ID of another document that exists

I have a Couchbase bucket "businesses" of documents, e.g.: business listings, like listing_HomeDepot, listing_Lowes, listing_DansHardware. Each listing_* doc has a field businessInfo that contains part of the key to another document in the same…
A.C.
  • 53
  • 1
  • 6
1
vote
0 answers

Spring data couchbase return null on one field

I want to do a simple getAll, but I have a null value on an embedded object. Response : [ { "id": "0da716f2-6ef0-404f-9403-4d869a6b6853", "channelName": "general", "broadcast": { "tenantId":…
1
vote
1 answer

How to run schema scripts after running couchbase via docker compose?

I have a schema script /data/cb-create.sh that I have made available on a container volume. When I run docker-compose up, my server is not initialized at the time command is executed. So those commands fail because the server isn't launched just…
Sankalp
  • 1,182
  • 2
  • 17
  • 22
1
vote
1 answer

How do I most optimally do this N1QL SELECT query?

Lets say I have a bunch of documents of type CONTACT: { "contactId": "V1234", "contactFirstName": "A", "contactLastName": "N", "emailAddress": "12345", "invitationId": "IVT:123", "documentType": "CONTACT" } And for each…
1
vote
0 answers

How to resolve "Error LNK2019 unresolved external symbol __imp__lcb_createopts_create referenced in function _main"

Keep getting "Error LNK2019 unresolved external symbol __imp__lcb_createopts_create referenced in function _main" I see the function header in the couchbase.h file so not sure about why the issue is happening. Is it something to do with function…
ghallow
  • 11
  • 1
1
vote
1 answer

How do I do an aggregate query against a Couchbase array index?

I have documents in my database that contain a "flags" array. Each of those has a "flag" value that contains a string. I'm trying to get the count of how many of each flag string there are across all documents. So for example, if I had two…
1
vote
0 answers

Couchbase query slowness

I’ve got quite a large dataset in Couchbase and observing slowness in the query when I get the meta().id from one of the CB document and then retrieve the actual document based on meta().id using the below implementation (Java SDK 2.7.6) - is there…
Developer
  • 239
  • 1
  • 3
  • 17
1
vote
1 answer

Couchbase PHP SDK 2.6 on docker container

When i install the latest php sdk 3.1.2 with PHP 7.3 it works perfectly but my app is working on PHP 2.6 SDK which is not working and giving me a error of /tmp/pear/temp/couchbase/couchbase.c -o couchbase.lo mkdir .libs cc…
Muhammad Ibrahim
  • 507
  • 9
  • 19
1
vote
0 answers

importing Couchnode as ESM gives error "[ERROR]: JSDoc '@augments' is not attached to a class."

I have a project i'm building in Deno and I'm trying to import the couchbase nodejs client via https://dev.jspm.io/couchbase but i'm getting an error: [ERROR]: JSDoc '@augments' is not attached to a class. This happens during compile time. Any…
Nelson Owalo
  • 2,324
  • 18
  • 37
1
vote
0 answers

Insert documents mapped to a _class from existing documents mapped to a different _class

I want to insert documents that are mapped to a _class : org.some.package.class2 from all documents that already exist (in the same bucket) and are mapped to another _class org.some.package.class2. I want preserve the same structure of the existing…
Elmehdi93
  • 70
  • 1
  • 9
1
vote
1 answer

Why does Mono.doOnError prints error logs

I have a functionality to store data to a couchbase array. I am using the reactive collection in couchbase 3.0 sdk. With the below sample I am able to store the data, but I am getting CasMismatchException printed in the logs. But as it is an…
1
vote
1 answer

How to fix error while using LookupIn in couchbase document error: "could not execute one or more multi lookups or mutations"

I am executing the below code in my code flow and getting an error "could not execute one or more multi lookups or mutations". Please suggest if I am doing something wrong here. I am using go SDK. frag, err :=…
1
vote
1 answer

Merge query in couchbase to to add append array in column

What I want to do is for every customer add a property named orders with the datatype array[] and move all Orders associated with a Customer into this property. In the target entity type and then delete the redundant property orders.person id…