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
1
vote
0 answers

How can I make an asynchronous API call in Java (Dropwizard framework) to update Couchbase records?

I have to update multiple records in Couchbase database. With some research I got to know that to do this I have to make an asynchronous call to database with batching. I can't update all the records in one go, so for this I have to make database…
1
vote
1 answer

Reactive couchbase issue content of this Observable (viewRow) is already released

I’m using spring-data-couchbase with reactive approach & getting the following error: The content of this Observable (viewRow) is already released. Subscribe earlier or tune the CouchbaseEnvironment#autoreleaseAfter() Method definition default…
1
vote
1 answer

Getting Documents in CouchBase cluster without DocumentID or N1QL

I am trying to get a single document from a couchbase cluster. However, N1QL is disabled in the cluster. I wanted to know if there is any way to get the document from the bucket without a N1QL query. I do not know the document ID's as well. I simply…
1
vote
2 answers

Get binary document from QueryResult Couchbase response

I am using Couchbase 3.2 SDK, to query couchbase server. Like below QueryResult result = cluster.query( "SELECT *, Meta().id FROM bucketName USE KEYS ?", …
best wishes
  • 5,789
  • 1
  • 34
  • 59
1
vote
0 answers

Couchbase query slowness

I’ve got quite a large dataset in Couchbase and observing slowness in the query when I get the meta().id from one of the CB document and then retrieve the actual document based on meta().id using the below implementation (Java SDK 2.7.6) - is there…
Developer
  • 239
  • 1
  • 3
  • 17
1
vote
0 answers

object saved as binary in couchbase

I am using ‘MappingCouchbaseConverter’ from spring library like below CouchbaseDocument target = new CouchbaseDocument(); mappingCouchbaseConverter.write(myObject, target); ctx.insert(couchbaseClientFactory.getCollection( “mybucketName”).reactive(),…
1
vote
0 answers

How to create hierarchical view in Couchbase

I have company documents in a bucket. I want to make a view of the company tree using those documents. How to achieve this using couchbase. I have checked this…
1
vote
0 answers

Intermittently: Couchbase Save Not Happening

I am using Couchbase java sdk client 2.7.11 with Couchbase 6.0 community addition. While performing upsert it gives me success response, but when I fetch the document or see through Couchbase UI, it’s not available. //getClient returning me "api…
yami
  • 871
  • 1
  • 9
  • 14
1
vote
0 answers

Parallel queries on Couchbase varies in execution & elapsed time

I am executing same query in parallel in 11 threads and I am getting huge difference in execution time of these queries. And if I execute only one query it executes very fast. Thread code: I used 11 threads Thread t1 = new Thread(new…
stg
  • 67
  • 1
  • 6
1
vote
0 answers

cant find cbb backup path in couchbase for cbrestore tool

Hello everyone i am just starting to use couchbase and seem to have stuck while following the samples provided on the website specifically the one regarding couchbase community edition https://docs.couchbase.com/tutorials/index.html and while…
JayD
  • 748
  • 1
  • 13
  • 38
1
vote
1 answer

NoClassDefFoundError: com/couchbase/client/java/error/TemporaryFailureException

I am using OpenJDK 11.0.5 java version and couchbase java client version 2.6.0. It works when called through a main class but when I am hitting through my api, it throws NoClassDefFoundError. Full stack trace below : I am just calling a method from…
Tripti
  • 51
  • 8
1
vote
0 answers

Couchbase N1qlQuery DSL : an empty, but smart expression to initialize with when building an expression?

We get parameters from the from the front end : final String currency - if NULL or empty or "ALL" means all currencies else the one the user picked. No list needed in where final Boolean isSFlag - if null then this wont be part of where else if the…
tgkprog
  • 4,493
  • 4
  • 41
  • 70
1
vote
1 answer

Get the String sql from a Couchbase N1qlQuery DSL?

After building a query object like in this stack overflow answer or examples in couchbase java n1ql queries docs can we get the string query before sending it to the server? I do not want to send it to the server. Merely want to build it with the…
tgkprog
  • 4,493
  • 4
  • 41
  • 70
1
vote
0 answers

Couchbase SDK 2.7 setRemove() method not deletin records from couchbase DB

I have a below code snippet to set remove the document. But I could see it is not deleting or removing documents from couchbase. bucket.setRemove(key, String.valueOf(instanceList.get(0)), …
Maheshwar Ligade
  • 6,709
  • 4
  • 42
  • 59
1
vote
2 answers

groupby and join in couchbase lite for android

I have the following documents for use in Android: Users: {"Type" : "User", "UserId" : 920, "InitialCommitment": 2000, "BlockId": 1, "_id" : "User_1_920"}, {"Type" : "User", "UserId" : 921, "InitialCommitment": 1800, "BlockId": 1, "_id" :…
Nie Selam
  • 1,343
  • 2
  • 24
  • 56