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

How to flush Couchbase bucket from Java code?

I need to clear a Couchbase bucket each time before unit test runs. I use the Java SDK > 2.0 version. In previous versions I found this wonderful method…
Oleksandr H
  • 2,965
  • 10
  • 40
  • 58
6
votes
2 answers

error (Reducer: ) when attempting to do distinct reduce

I am getting an error when trying to do a DISTINCT reduce that I got from here. I have reproduced this error on the beer-sample bucket, so this should be easy to reproduce. I have not seen any errors in the mapreduce_errors.txt file, or anything…
Blue
  • 22,608
  • 7
  • 62
  • 92
6
votes
1 answer

Couchbase mobile replication through REST-API

While trying to integrate couchbase mobile (version 1.1.0) in our hybrid mobile app (ionic), we ran into an issue with the push replication on iOS. At some point in the application (after the local database has been created and so on) a design…
Bert
  • 257
  • 1
  • 2
  • 10
6
votes
1 answer

Couchbase N1QL: How to get complete Document including ID and CAS with SELECT

I am using Couchbase 4.0 beta with java-client 2.1.3. The Bucket.get(id) returns JsonDocument from which I can get id and cas as well as the content. Now I want to query on secondary indices using N1QL (select *). However, the QueryResult only…
P T
  • 75
  • 2
  • 5
6
votes
0 answers

Random "CouchbaseException: INVALID_ARGUMENTS" when using a counter

In Dropwizard I use Couchbase' Bucket.counter(...) method to generate unique IDs for my documents: JsonLongDocument counter = bucket.counter("taskID", 1); int id = (int) counter.content().intValue(); These lines work often but sometimes I…
Bastian
  • 4,638
  • 6
  • 36
  • 55
6
votes
1 answer

In Couchbase or N1QL how can I check if the values in an array match

In a couchbase I have the following document structure... { name: "bob", permissions: [ 2, 4, 6 ] } I need to be able to create a view, or N1QL query which will check if the permissions for "bob" are contained…
Matthew
  • 639
  • 5
  • 11
6
votes
5 answers

How to retrieve a list of keys/documents in couchbase database in C#

I'm totally new to couchbase. This is the sample code I use for insert and get documents: using (var bucket = Cluster.OpenBucket()) { var document = new Document { Id = "Hello", Content = new { …
user3530012
  • 720
  • 2
  • 20
  • 37
6
votes
5 answers

Ubuntu - trying to install Python Couchbase lib - "libcouchbase/couchbase.h: No such file or directory"

All, I'm trying to install the Python Couchbase lib in my Linux server, but it's failing with "libcouchbase/couchbase.h: No such file or directory". I also cannot find which package contains the couchbase.h file. How can I fix…
user43995
  • 597
  • 2
  • 8
  • 21
6
votes
3 answers

How to use Couchbase Java Client in a Dropwizard Project?

I've been looking at the couchbase-java-client project and wondering whether it's possible to use it inside of a dropwizard project. It seems like it'd be a natural fit, because couchbase is basically a JSON database, but the java client doesn't…
benjismith
  • 16,559
  • 9
  • 57
  • 80
6
votes
2 answers

N1ql -> IN operator does not work with other conditions

The following query works just fine when only IN operator is used SELECT META().id FROM bucket_name WHERE description IN ['Item1','Item2'] But when I fire this query it gives me a blank result SELECT META().id FROM bucket_name WHERE id = 123 AND…
PratikGandhi
  • 173
  • 1
  • 10
6
votes
1 answer

Couchbase lite on Android - General architecture?

We are building a project using couchbase. On Android, I use couchbase lite. Usually, I've been working with relational databases and because I am new to couchbase I am having trouble finding the "correct" architecture. I do understand the core…
metter
  • 1,434
  • 11
  • 22
6
votes
3 answers

Generate Unique UInt32 ID for Couchbase

I am looking for a way to generate a unique ID for nosql database. Unlike relational database there is no idea of rows which means there is no last row to increment from. The most common way to handle this is to use UUID's. But my problem is I need…
majidarif
  • 18,694
  • 16
  • 88
  • 133
6
votes
1 answer

Mocking Couchbase

I have a Java based data access layer that interacts with Couchbase. In order to apply unit testing to this layer I would like to mock Couchbase. Browsing the net I encountered this project which is also hosted in GitHub. I would like to use it but…
forhas
  • 11,551
  • 21
  • 77
  • 111
6
votes
4 answers

Sync Gateway "Channels" in PouchDB

Is there any support for Couchbase Sync Gateway's "Channels" in Pouch DB? I'd like to be able to have uses see a subset of the overall data and if they create new data to be able to share whom they share it with. Is that possible with PouchDB? Or…
6
votes
1 answer

Couchbase Query Execution time?

How I can calculate Query time and Query Execution plan in Couchbase.Is there any Utilities like Oracle Explain plan and tkprof in Couchbase db? edit: I am trying to see which database performs best for my data. So i am trying to experiment with…
Vijay
  • 924
  • 1
  • 12
  • 27