Couchbase Q&A

Have a Question? Get it answered by our community.
Looking for the old Couchbase Forum? Click here (read-only).
christopher.mina's picture
Asked 1 month 2 days ago
Latest activity 4 weeks 1 day ago

2.0.0-Beta - N1QL Query object not instantiated properly

In the current source code for 2.0.0-Beta, the N1QL Query object is not instantiated properly, the raw Query string is ignored and replaced with an empty str: str = ''.

I have created a new pull request for this, found: https://...

christopher.mina's picture
Asked 1 month 2 days ago
Latest activity 4 weeks 1 day ago

2.0.0-Beta - multiple CAS values

I'm making a standard #get(id) call against a bucket and the return response.value is good, however, the CAS value is an array with 2 values, always.

I'm on Couchbase Version 2.5.1-1083-rel, Mac OSX.

If this is intentional, can you please explain how to use the two values in the...

lostincomputer's picture
Asked 1 month 3 days ago
Latest activity 4 weeks 1 day 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 1 month 3 days ago
Latest activity 4 weeks 1 day 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 1 month 3 days ago

cbworkloadgen Tool is seems to be missing in 2.5 couchbase installations

Hello,

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/

Thanks

optimista's picture
Asked 1 month 4 days ago
Latest activity 1 month 4 days 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:
Server1
(1)Active Node :Doc1, Doc2, Doc3
(2)...

heehaw453's picture
Asked 1 month 4 days ago
Latest activity 1 month 4 days ago

frequent connection drops

Ent Edition 2.5.1 server
using 1.3.7.0 .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 1 month 4 days ago
Latest activity 1 month 4 days 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 month 5 days ago

Did not download optional dependencies: pecl/igbinary

hello.

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 http://packages.couchbase.com/ubuntu/...

draiwn's picture
Asked 1 month 5 days ago
Latest activity 3 weeks 1 day ago

[Solved] Jar conflict with Couchbase inside Spark Streaming job

Hi,

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:

...

Pages