Questions tagged [couchbase-java-api]

The Couchbase Java SDK provides API to working with JSON documents using the Data, N1QL Query, Full-Text Search, Analytics Query and Views Queries available from Couchbase Server.

This Java native client library also has an RxJava based asynchronous API, has built in metrics exposed through an event bus API.

Resources:

172 questions
2
votes
1 answer

How to put Java object in Couchbase's JsonObject in one operation

With Couchbase's jsonObject we can create object with certain fields: import com.couchbase.client.java.document.json.JsonObject ... JsonObject content = JsonObject.create().put("some", "value"); The put function has several String & value…
riorio
  • 6,500
  • 7
  • 47
  • 100
2
votes
1 answer

Couchbase internal processes taking a lot of CPU

I am using couchbase 5.0.1 Couchbase internal processes like beam.smp, indexer and cbq-engine are taking a lot of CPU. Can you please tell me how to tune these processes so that they take less CPU?
Bhuvan
  • 2,209
  • 11
  • 33
  • 46
2
votes
2 answers

How to query Couchbase using Java API

I'm trying to query from the Couchbase example beer-sample. This query works fine in the Couchbase browser UI: select category, style from `beer-sample` where style like 'Imperial%' Results: [ { "category": "North American Ale", "style":…
Magnus
  • 10,736
  • 5
  • 44
  • 57
2
votes
1 answer

Couchbase - find document by regexp using uppercase words

Using couchbase 5.1.1 and java client 2.6.1. On database, I have bucket with name config and have one document: [ { "section": "MAIL", "id": "aaa.1.0.0.MAIL", "version": "1.0.0", "values": { "mail" : "test1@test1.com" } …
MatWdo
  • 1,610
  • 1
  • 13
  • 26
2
votes
1 answer

RxJava : Retain partial list of objects which were inserted in the couchbase db before exception was thrown

Observable .from(couchbaseDocuments) .subscribeOn(Schedulers.io()) .flatMap(docToInsert->asyncBucket.insert(docToInsert)) …
humbleCoder
  • 667
  • 14
  • 27
2
votes
1 answer

View does not update to add object that was previously ignored

There is no document in view after the document has been inserted in bucket. My document: { "state": 1, "rdbms_id": 0, "startDate": 1511882685998, "endDate": -1, "type": "kv", "userid": 1222, "uuid":…
onder
  • 311
  • 2
  • 10
2
votes
0 answers

"More than 1 Couchbase environment" warning as misconfiguration, why?

I’ve tried to google and search around forum for more convincing answers on this topic. The below are what i’ve found: Scalability and Concurrency More than 1 Couchbase Environments found Getting out of memory exception while creating multiple…
ChinKang
  • 4,212
  • 2
  • 17
  • 29
2
votes
2 answers

Couchbase RX Client - Merging multiple observables vs flatmap

What is the performance difference between the following code snippets? Use case: retrieve multiple keys from Couchbase using the Couchbase reactive SDK. Snippet #1 return Observable .from(keys) .flatMap(id -> …
shays10
  • 509
  • 5
  • 18
2
votes
1 answer

Couchbase Java API getting ConnectException

I am creating a dummy JSON and trying to query it. I am doing that using JAVA. The code is as follows :- import static com.couchbase.client.java.query.Select.select; import static com.couchbase.client.java.query.dsl.Expression.s; import static…
user3236167
2
votes
2 answers

Java: Any need to use sync gateway in web application for communicating with couchbase server?

I am new in couchDB database. I am trying to connect couchbase server using JAVA client, but I am confused in Couchbase sync gateway. My question is, Couchbase sync gateway is only for mobile application or can we use for web application? is this…
2
votes
1 answer

Couchbase Java SDK: concurrent timeout exception

I am using Couchbase 3.0 And I am facing this problem , that when I try to Open two buckets simultaneously It gives me the error java.util.concurrent.TimeoutException. I have a case where I have to open two buckets simultaneously. When I comment one…
Shivansh
  • 3,454
  • 23
  • 46
1
vote
0 answers

Couchbase Testing latency of replicated data

Consider the following scenario: I have got a couchbase database installed in 3 different clusters. As you may know, couchbase db offers seamless selfreplication between clusters. I would like to know, if I push some records into a cluster db, how…
1
vote
2 answers

Delete unused keys from CB

We have approx 1 million keys in CB and each key has expiry time of 10 days. Basically after every 10 days we run a schedular to re-insert data in CB for these 1 million keys. Out of these there are approx 0.5 million keys which are not used. There…
Vipin Gupta
  • 213
  • 3
  • 15
1
vote
1 answer

Couchbase Java SDK subdocument mutation

Hi Im running couchabse server 7.1.3 docker container and trying to use the 3.3.4 couchbase java sdk version. I am facing an issue while performing subdocument mutation using the upsert command. The issue I am facing is when I use the…
1
vote
2 answers

Enable Debug Logs for Couchbase SDK with spring boot

I am using Couchbase SDK along with Spring boot 2.6.x version. I am using the spring spring-data-couchbase:jar:4.4.0 which in turn has com.couchbase.client:java-client:jar:3.3.0 dependency. The issue, is when trying to execute cluster.query()…