Couchbase Q&A

Have a Question? Get it answered by our community

lostincomputer's picture
Asked 5 days 29 min ago
Latest activity 22 hours 17 min ago

Overcoming key length limit strategy?

How do I enforce a unique constraint in CouchBase where the combined url and siteName values must be unique and the total length of url and siteName can be longer than the key length limit of CouchBase:

BillQ's picture
Asked 5 days 16 hours ago
Latest activity 22 hours 5 min ago

How do I retrieve a random document in a view?

Hi. I'd like to create a view that will select a random document of a specified type. For example, let's say I have the following documents:

  "uid": 1,
  "name": "Bill",
  "company": "ABC
faheemrao's picture
Asked 5 days 17 hours ago

cbworkloadgen Tool is seems to be missing in 2.5 couchbase installations


Does anyone know why the tool cbworkloadgen is missing in the 2.5 couchbase installations, in docs it says it should be under /opt/couchbase/bin/tools/


optimista's picture
Asked 6 days 15 hours ago
Latest activity 6 days 15 hours ago

Confusion with Node, Cluster, Active Data and Replica Data.

I am still confused with Node, Cluster, Active Data and Replica Data.

Let's say, I have 2 clusters.
1 cluster has 2 servers.
Each server has 1 Active Node and 1 Replica Node

This is what I am understanding:
(1)Active Node :Doc1, Doc2, Doc3

heehaw453's picture
Asked 6 days 16 hours ago
Latest activity 6 days 15 hours ago

frequent connection drops

Ent Edition 2.5.1 server
using .net api.

Client runs on Azure cloud service worker role. Couchbase is installed on an Azure IaaS A1 vm.

Get dropped connections frequently when trying to save to Couchbase a JSON document. The necessary ports are opened and verified...

TomS's picture
Asked 6 days 18 hours ago
Latest activity 5 days 20 hours ago

N1QL and non-default buckets

Have downloaded and implemented N1QL per instructions. I can query the beer-sample and default buckets successfully with cbq. However, when I try to query a new bucket I have created and loaded, I get the "Bucket xxxx does not exist" error.

What have I done wrong?

cbq> select...

zzinggu's picture
Asked 1 week 21 min ago

Did not download optional dependencies: pecl/igbinary


my development environment is ubuntu 14.04 LTS 32bit & php5-5.5.9 version.

i did not install.

# sudo wget -O/etc/apt/sources.list.d/couchbase.list

draiwn's picture
Asked 1 week 14 hours ago
Latest activity 6 days 23 hours ago

[Solved] Jar conflict with Couchbase inside Spark Streaming job


Couchbase Java SDK 1.4.4 uses netty 3.5.5 as dependency but Spark uses Akka Actor which uses netty with a different version.
Does anyone have an idea to solve this jar conflict issue?

Here below the stack strace inside Spark:

joaojeronimo's picture
Asked 1 week 16 hours ago
Latest activity 6 days 12 hours ago

How to query with curl ?

I'm running the latest versions of CouchBase and N1QL (as of now Community 2.2.0-837-rel and Developer Preview 3 respectively) and I'm able to do queries using the cbq command, but I'd like to do them with curl.

I tried curl...

pappu_pandit's picture
Asked 1 week 17 hours ago

View design


I want to write a view that can extract array object members based on array object members value.

For example, I have a document that has this structure written to it:

public class ABC{

public class DoorData