Couchbase Q&A

Have a Question? Get it answered by our community

invoodoo's picture
Asked 7 months 1 week ago
Latest activity 7 months 1 week ago

Filter data by two or more fields in document

Is there any way to filter data from DB by two or more fields?

For example, I want to find document by TYPE that equal to Message and DATE that between 1.01.2014 and 18.01.2014?

So, the question could I do anything like NSPredicate and CoreData? Make very flexible searching in...

fischer7047's picture
Asked 7 months 1 week ago
Latest activity 7 months 1 week ago

Rebalance/Architecture

This is an admittedly general question, but looking for some advice. We have a three node couchbase 2.1 community cluster. We have big memory nodes and big buckets. Each node is 192GB and our largest bucket is ~130 million keys and takes up about 100GB. We have never successfully failed over...

gandalf_the_cool's picture
Asked 7 months 2 weeks ago
Latest activity 7 months 1 week ago

Cannot retrieve values from memcached bucket, neither from Rest nor Java api

In couchbase buckets, you just need to send a get request like this:

SERVER_IP:8091/couchBase/COUCHBASE_BUCKET_NAME/KEY

and the value is returned.

I have a memcached value, and even though i have the keys, i cannot extract any values. When in "COUCHBASE_BUCKET" i put the...

fredlaub's picture
Asked 7 months 2 weeks ago

Including document key inside document?

Hi,

I intend to use automatic Java Pojo to json convertion and the other way round, with Jackson.
I'm trying to define my documents, client api and java pojo's so that with as less coding as possible, my Java pojo get's converted to json to inter-act with my clients and to couchbase...

christoph's picture
Asked 7 months 2 weeks ago
Latest activity 7 months 1 week ago

Connection to multiple nodes

Hi,

I tried the following code;

var db = new couchbase.Connection({
host: ["<host1>:8091","<host2>:8091"]
bucket:'default',
}

Now, if I shut down host1, than I get a connection. If I shut down host2, than the...

christoph's picture
Asked 7 months 2 weeks ago

Connection to multiple nodes

Hi,

I tried the following code;

var db = new couchbase.Connection({
host: [":8091",":8091"]
bucket:'default',
}

Now, if I shut down host1, than I get a connection. If I shut down host2, than the connection fails.

BTW: The following works:...

frankgarcia's picture
Asked 7 months 2 weeks ago
Latest activity 6 months 3 weeks ago

Dealing with document metadata

How can I retrieve a document metadata? With Bucket#get I can only get its value

Is there any function in the SDK that can convert a document CAS number into the REV string value and the other way around?

So far my poor man solution is having a view with all document ids as key,...

bibhas's picture
Asked 7 months 2 weeks ago
Latest activity 4 months 3 weeks ago

How does stale query work?

Hello,

Sorry, I know the documentation is very clear about how stale=ok should work. But, I am not seeing the right behavior.

I am running a _count reduce query with stale set to OK.

...
loolek's picture
Asked 7 months 2 weeks ago
Latest activity 6 months 3 weeks ago

Java incrBulk() and asyncIncrBulk() are missing?

Hi!

Can I find any multi/bulk key incr method in the Java API, similar to these?

Perl: Multi version of "arithmetic"

incr_multi(@keys)
decr_multi(@keys)
incr_multi( [key, amount], ... )
decr_multi( [key, amount], ... )

JavaScript: Now changed to...

cxd's picture
Asked 7 months 2 weeks ago

Keepalive - connection pooling returns incorrect results from different reduce views

I have a scenario that can be recreated with the java client, and at the moment have worked around this by using a separate httpclient to query views.

The scenario I've seen is as follows.

I have multiple views in the couchbase bucket.

Note that when fetching views in both...

Pages