Couchbase Q&A

Have a Question? Get it answered by our community.
Looking for the old Couchbase Forum? Click here (read-only).
christoph's picture
Asked 8 months 1 week ago
Latest activity 8 months 4 days 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 8 months 1 week 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 8 months 1 week ago
Latest activity 7 months 2 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 8 months 1 week ago
Latest activity 5 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 8 months 1 week ago
Latest activity 7 months 2 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 8 months 1 week 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...

tzuvys's picture
Asked 8 months 1 week ago

Sorting Discrepancies

Hi,

We are querying CB using the Java SDK and the view being queried is to be sorted by a specific attribute of the documents. For instance, each document has a field which represents the state, this state is a string.

When querying this view we experience the following problem:...

yuzkan's picture
Asked 8 months 1 week ago
Latest activity 8 months 1 week ago

Find out if a document has been synchornized with server

Hi,

is it possible to check if a document that has been updated/created on the device has been synchronized with CB Sync Gateway?

Also how can I query for all documents that are not yet synced with CB Sync Gateway if the device is offline?

Thanks,
Yuzkan

erwink's picture
Asked 8 months 1 week ago
Latest activity 2 months 4 weeks ago

N1QL java sdk api

Hello All,

Is it possible to use N1QL from Couchbase JAVA sdk?
Your directions would appreciated.

Thanks,
Erwin

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

ReactiveCouchbase java api

Hello Experts,

We'd like to use this reactiveCouchbase from JAVA Code and not as play framework app. 
What is the advantage of above lib against the async operations of the Couchbase sdk's async operations? 
One more question,  whether the map methods in reactiveCouchbase is...

Pages