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
5
votes
4 answers

Get an accurate count of items in a bucket

The couchbase admin console (I'm using version 5.0, community) shows a count of items in each bucket. I'm wondering if that count is just a rough estimate and not an exact count of the number of items in the bucket. Here's the behavior I'm seeing…
Murphy Randle
  • 816
  • 10
  • 19
5
votes
2 answers

object instatiation for java class returning SELF is not working kotlin

I have a java class public class CouchbaseContainer> when i try to create object for this in kotlin val couchbase = CouchbaseContainer() Kotlin is throwing error Type inference failed: Not enough…
5
votes
0 answers

Suppress node-gyp log messages on MacOS

I am trying to install couchbase using npm. I have the latest version of node (v9.6.1) and npm (5.8.0) installed. It seems the prebuilt binary is not available for my environment. So it is trying to build the binaries locally. During npm install, I…
Sanket Meghani
  • 885
  • 2
  • 14
  • 22
5
votes
1 answer

Using Couchbase in background thread

I am developing an app which uses Couchbase to sync the documents. Right now all the documents I am creating on main thread and using the same. But now I got stuck in a scenario where I need to create and push the document in some other thread than…
Shyam
  • 417
  • 4
  • 16
5
votes
1 answer

Replicating Couchbase to ElasticSearch (w/ multiple indices)

Currently we're using Couchbase and ElasticSearch(2.x) and replicating data from CB to ES successfully using elasticsearch-transport-couchbase plugin. The problems began while upgrading to ES 5.6.4. Up until now, we used a single index in ES, and…
shays10
  • 509
  • 5
  • 18
5
votes
2 answers

What exactly is the difference between REQUEST_PLUS and STATEMENT_PLUS ScanConsistency in Couchbase?

I couldn't understand the different between a request and a statement and how consistency is related to each of them.
N A
  • 831
  • 2
  • 8
  • 28
5
votes
2 answers

Couchbase Retrieved Document Expiry always set to 0

It seems like the document expiry value is always retrieved as "0" by the couchbase client, although obviously it is taken into account. Any ideas ? (Using couchbase Java Client 2.2.8) bucket.upsert(JsonDocument.create(key, 5, content)); try { …
Mehdi LAMRANI
  • 11,289
  • 14
  • 88
  • 130
5
votes
1 answer

Docker: cannot link containers in --net=host mode

I have a Couchbase server container named db launched with --net=host option which exposes port 11210, and now I have to link another container to it. If I use the --link option while running my new container, that is type: docker run -d -P --name…
SegFault
  • 2,020
  • 4
  • 26
  • 41
5
votes
2 answers

Couchbase uses wrong indexes with N1QL parameterized queries

I have problems with understanding of way couchbase query plan works. I use SpringData with Couchbase 4.1 and I provide custom implementation of Couchbase Repository. Inside my custom implememtnation of Couchbase Repository I have below…
5
votes
1 answer

How to use firebase authentication in couchbase sync gateway

I'm developing an Android app. I have used firebase(email, password) authentication mechanism which is very secure and easy to implement. And as I want the data to be stored in our servers, I'm not using firebase storage. Couchbase sync gateway…
5
votes
1 answer

Installing PHP SDK Couchbase error

I'm trying to install the PHP SDK for my Couchbase cluster and everything during installation finishes without a hitch, but when I run php -i in the terminal I get the following error: PHP Warning: PHP Startup: Unable to load dynamic library …
Peter Karlsson
  • 403
  • 5
  • 19
5
votes
3 answers

Is it possible to connect to two different buckets of couchbase in spring boot

I am trying to connect to two different buckets in couchbase using spring boot. But in a single spring boot application the database config only takes a single bucket name. Is it possible to connect to more than one couchbase bucket in spring-boot?
piyush
  • 115
  • 2
  • 12
5
votes
2 answers

Syncing PouchDB and Couchbase Sync Gateway - CORS Error

I need help syncing PouchDB with Couchbase Sync Gateway. I keep getting the following error that points to a CORS problem, but I've configured Couchbase Sync Gateway (CSG) for CORS according to their documentation. XMLHttpRequest cannot load…
Corey Quillen
  • 1,566
  • 4
  • 24
  • 52
5
votes
2 answers

Couchbase 4.5 return part of document

I'm currently working on a project where we are using couchbase 4.1 as of today for a eCommerce site. I want to store our websites entire category structure in Couchbase as a single document and then query for a specific category and return that…
Martin
  • 123
  • 6
5
votes
1 answer

Include a json file in an another json file only with json

In xml i can include a file in a another xml file and use it. This is usefull if your software get the configuration file from xml but doesn't have any method to separate configuration like apache/ngnix(nginx.conf - site-available/ -…
jedi
  • 839
  • 12
  • 33