Couchbase Questions: Java SDK

Have a Question? Get it answered by our community

vakoroteev's picture
Asked 1 year 2 months ago
Latest activity 1 year 2 months ago

Limitation on the number of ops per second for Couchbase client

Hello,
I study the performance of Couchbase and I noticed one interesting thing. I use JavaSDK. When adding documents in database through a single-threaded client by "set" method with parameter PersistTo.ONE number of operation per second does not exceed 5-7 ops per sec. What explains...

ohassidi's picture
Asked 1 year 2 months ago
Latest activity 6 months 3 weeks ago

_count reduce on existing view

I have the followed scenario: I am running a paginated query and I get some results, I addition I want to know how much total will I have at the end.

Any idea?

bdw429s's picture
Asked 1 year 2 months ago
Latest activity 1 year 2 months ago

SDK throws unhelpful NPE when server is unreachable

When trying to create the client via the Java SDK, let's assume I'm connecting to a single node to make it simple. If that node is offline (say I forgot to start the Windows service on my dev machine :), instead of getting a useful error message that describes the issue in a way that allows me...

kaz's picture
Asked 1 year 2 months ago
Latest activity 1 year 2 months ago

time to live

Is there a way to make an update to an object in couchbase db which was originally set with some time to live without resetting/refreshing the original time to live?

Thanks.

bdw429s's picture
Asked 1 year 2 months ago
Latest activity 1 year 2 months ago

New views are immediately available

Following the directions here http://tugdualgrall.blogspot.com/2012/12/couchbase-101-create-views-mapr... I have set up some code that pulls a list of IDs from the cache by creaing a view on the fly...

bdw429s's picture
Asked 1 year 2 months ago
Latest activity 1 year 1 month ago

Key timeout expiration behavior and stats

Hello, I'm using the Java Client and CouchBase 2.0.1 community edition (build-185)
I'm writing a provider to allow CFML developers to use CouchBase inside a cache aggregator called CacheBox (part of the ColdBox platform). I'm trying to get the correct metadata from the CouchBase keys for...

fitz's picture
Asked 1 year 2 months ago

Assert failure in ringbuffer_consumed in C API 2.0.3.

I'm using the C API 2.0.3 in a loaded system talking to single none clustered Couchbase (1.8), we're occasionally getting crashes within the API. like the one below. There can be a few different flavours of the crash but most are similar. Also the application multi threaded and is waiting for...

coder_lol's picture
Asked 1 year 2 months ago
Latest activity 1 year 2 months ago

get versus getAndTouch

Couchbase 2.0.1 Java client 1.1.7
We have noticed that, at times, getAndTouch, would not return our object even though we can confirm the object exists using the built-in Web Console.
By definition, getAndTouch may not return the object, perhaps, due to, among many reasons,...

coder_lol's picture
Asked 1 year 2 months ago
Latest activity 1 year 1 week ago

Couchbase 2.0.1 Mapping of Plain Java String

Couchbase Enterprise / Community 2.0.1
Java SDK 1.1.5 / 1.1.7
client.add("myKey", "34.0");
The Couchbase console "Documents" view showed the value as "34". This case perplexes me. Why? Compare to another case below...
client.add("myKey", "6S.0");
The Couchbase...

cadams's picture
Asked 1 year 3 months ago
Latest activity 1 year 3 months ago

Return CASValue on initial set Java SDK 1.1.5 (updated question)

Is there a way to do an initial set with CAS and return a CASValue without having to do an add or set followed by a gets()?

Perhaps there is a util to generate an initial long unique cas id?

Pages