Couchbase Q&A

Have a Question? Get it answered by our community.
Looking for the old Couchbase Forum? Click here (read-only).
kaz's picture
Asked 1 year 5 months ago
Latest activity 1 year 3 months ago

Multi buckets Versus Single bucket, best practice/recommendation?

Still at evaluation phase with Couchbase Server.

We have multiple buckets configured and our application will have to create multiple connections at startup (using couchbase client java sdk) in order to access required data.

Should we consider consolidating into a single bucket and...

jygan's picture
Asked 1 year 5 months ago
Latest activity 1 year 5 months ago

question regarding lcb_wait and lcb_store

why we need call lcb_wait(instance); every time before operation like Add, get data, destroy instance?
how to implement timeout mechanism with lcb_wait(instance), any example?
according to http://www....

iamdodge's picture
Asked 1 year 5 months ago
Latest activity 1 year 5 months ago

libcouchbase C API without callbacks?

Since v1 of the API, the C libcouchbase has required errors and get results to call back to a function, and most other language APIs do this but PHP doesn't. Why is this? With MySQL you can just make function calls and get results back. I'm trying to use libcouchbase in a C++ app but I need to...

jygan's picture
Asked 1 year 5 months ago
Latest activity 1 year 5 months ago

question regarding C client library

I'm using libcouchbase, have couple questions here:
1. lcb_datatype_t is ENUM ? what is the possible value of lcb_datatype_t? i tried to use LCB_JSON, my code cannot be compile, cannot find this type. can anyone point out the definition of lcb_datatype_t?
typedef lcb_uint8_t...

jpoloney's picture
Asked 1 year 5 months ago
Latest activity 1 year 4 months ago

Customizing elasticsearch indexes from Couchbase ES plugin

Hey all,
This is more a question with ElasticSearch, but it's only because the data is coming from Couchbase. Was wondering if any one else is more familiar with this than I am.
I'm trying to figure out how to customize our elasticsearch index that is being populated from the...

rdominy's picture
Asked 1 year 5 months ago
Latest activity 1 year 5 months ago

Key limit in View queries?

I'm querying a view using the PHP SDK using the view method, $object->view($ddocname [, $viewname ] [, $viewoptions ]), and finding that when I pass in a certain number of keys in the viewoptions param, the method silently fails and just returns null. It appears that 164 keys is OK, but 179...

rkb's picture
Asked 1 year 5 months ago
Latest activity 1 year 4 months ago

What is the difference between Fail Over and Remove?

Practically I would like to know the difference between Fail Over and Remove. If one server is acting up I would probably "remove" it from the cluster and then when the problem is resolved reboot the server and add it back into the cluster. Doesn't "Fail Over" do the same thing? I would think...

bjorg's picture
Asked 1 year 5 months ago
Latest activity 1 year 5 months ago

What recommendations do you have on EC2 instances?

I'm curious as to what EC2 instance would be recommended to run a single Couchbase node. This isn't for production use, but rather some simple map-reduce computation of ~3M records.

The two EC2 instance sizes that I'm debating between are:

1) Extra Large (m1.xlarge), 4 virtual...

cschlupp's picture
Asked 1 year 5 months ago
Latest activity 1 year 5 months ago

Re-adding documents fails

Hi folks,
I experienced a weird behaviour on my Couchbase cluster running version 2.0.1 community edition (build-170-rel).
Through PHP-lib I execute the following code:

  $json =
...
rkb's picture
Asked 1 year 5 months ago
Latest activity 1 year 5 months ago

Query options

In Java there are methods for setting the start and end document ID key (setStartkeyDocID() setEndkeyDocID()) and there are methods to set the key (setKey() and setKeys()) and key range (setRange(), setRangeStart(), setRangeEnd(), etc.). I am unclear as to the difference? When I setup a view the...

Pages