Questions tagged [couchbase]

Use for the Couchbase Server product only (NOT CouchDB or Couchbase Lite). Couchbase Server is a distributed database engineered for performance, scalability, availability and flexible query. It enables developers to build applications easier and faster by with both the power of SQL and the flexibility of JSON.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

com.couchbase.client.java.error.ViewDoesNotExistException: View blogs/all does not exist."

OnError while emitting onNext value: com.couchbase.client.java.document.json.JsonObject.class at rx.exceptions.OnErrorThrowable.addValueAsLastCause(OnErrorThrowable.java:118) ~[rxjava-1.3.8....
1
vote
1answer
25 views

How to add new field in Couchbase document using GO SDK

The register structure below captures the data coming from the registration UI: register struct { Email string Password string } The collection.insert command creates the following document: {...
1
vote
0answers
16 views

How to increase timeout for waiting for the couchbase Query service to come up

I am running couchbase in a testcontainer (using docker) and it is timing out waiting for the Query service to come up. How do I increase the timeout from 120 seconds? 2020-01-23 19:19:43,026 INFO ...
1
vote
1answer
21 views

Indexing in Couchbase - primary index being used instead of secondary index

I run quite a lot this query in couchbase SELECT * FROM dev_hostel where data.type = 'Guesthouse'and data.id = '12' so, I created this index CREATE INDEX `type-id-index` ON `dev_hostel`(`data.type`...
1
vote
0answers
31 views

Unsupported type for JsonArray: class java.util.LinkedHashMap

Updating a subobject with Spring Data for Couchbase I do this query in the Couchbase console and it is working fine UPDATE `dev_h` USE KEYS "12" SET _data.payload = { "name": "new_name", "language":...
0
votes
0answers
10 views

java.lang.IllegalStateException: The content of this Observable is already released

I am using Spring web flux + Reactive Couchbase 6.0. After deploying my code, I am getting below two errors off and on. First Error: [QueryEndpoint]: Got error while consuming KeepAliveResponse. ...
0
votes
0answers
5 views

No accessor to set property private final java.util.Map com.couchbase.client.java.document.json.JsonObject.content

I have this Java object: @Data @Builder @AllArgsConstructor @JsonInclude(NON_NULL) @EqualsAndHashCode public class HostelData { @Field private @NotNull String id; @Field private JsonObject payload; }...
1
vote
0answers
18 views

Move Indexes and Users from Couchbase 5.1 to Couchbase 6.0

There was a question asked here that's similar but does not solve my trouble. I am running a Couchbase 5.1 server and would like to transfer EVERYTHING to a newly created Couchbase 6.0 server. ...
1
vote
1answer
27 views

Couchbase N1QL Index for 1 billion documents

I have the following query that I am running in Couchbase enterprise (6.0.2 build 2413) against around 1Billion documents. What would be the most performant index to create based on this query? (...
0
votes
1answer
69 views

JsonConvert.DeserializeObject throws exception when deserializing CouchBase response

I'm trying to deserialize JSON response from CouchBase. However, deserialization throws an exception. IQueryRequest queryRequest = QueryRequest.Create(queryString); ...
0
votes
2answers
34 views

How can I update expiration of a document in Couchbase using Python 3?

We have a lot of docs in Couchbase with expiration = 0, which means that documents stay in Couchbase forever. I am aware that INSERT/UPDATE/DELETE isn't supported by N1QL. We have 500,000,000 such ...
1
vote
1answer
57 views

No converter found capable of converting from type [java.util.LinkedHashMap<?, ?>] to type

I have documents like this in a couchbase DB { "hostel": { "city": {} ... } } and I have this query defined in a repository @Query("UPDATE #{#n1ql.bucket} SET hostel.state = $2 where ...
2
votes
1answer
20 views

No index available on keyspace in couchbase

I have a couchbase DB with documents stored, like { "_host": { "kind": "KIND1", "id": "ID1", .. } I have created this index: CREATE INDEX `kind-id-index` ON `dev`(`_host.kind`,`_host.id`) ...
1
vote
0answers
18 views

remove “content” field when saving

I have an object with this property: data={"name":"SDFSDFDS","java":true}))) but when I save it on couchbase, a field named "content" is added, and I would like not to be added "data": { "...
2
votes
0answers
23 views

why spring framework still does not have couchbase “analytics query” support

I am using spring-data-couchbase-3.1.6 jar but it does not support analytics queries. Verified in CouchbaseOperactions.java https://github.com/spring-projects/spring-data-couchbase/blob/master/src/...
1
vote
1answer
51 views

nodejs couchbase install failure

I have installed multiple packages like Express, Joi, Fastify without any issue. But when I try to install couchbase package using npm, it's always failing. Please find below the log. > [email protected]
2
votes
1answer
27 views

How to view couchbase lite database on windows?

I am new to couchbase lite implementation, i am working on Android platform and i have created a database,saved a simple document in it. Now i want to extract the database and view the document saved ...
0
votes
0answers
34 views

Spring Boot & Couchbase Stack Overflow

Hi I have 2 simple classes in a bidirectional relationship which are causing infinite recursion resulting in an eventual stack overflow when serialising into JSON. I am using the Spring Boot 2.2.2 ...
-1
votes
1answer
68 views

ScalaSpark: unable to create dataframe with scala-client dependency

I need to support couchbase version 6 with spark 2.3 or 2.4 and scala version is 2.11.12. I am facing an issue while creating a data frame. SBT code snippet scalaVersion := "2.11.12" resolvers += "...
2
votes
3answers
48 views

How to add couchbase index replicate without deleting it

I have in my environment one secondary index (without replication) and I want to know how do I create the replicates without dropping the index? I don't want to delete the index and recreate it with ...
0
votes
1answer
26 views

Couchbase N1QL query with joined subquery with USE KEYS

I need to write a n1ql query which demands another sub-query in select clause. As it is mandatory to use 'USE KEYS' while writing subqueries in n1ql. How to write USE KEYS clause for an inner joined ...
1
vote
1answer
33 views

Oracle/SQL user defined function equivalent in Couchbase

In Oracle/SQL we have provision to write user defined functions where we can write complex logic to computer some values and then return back in query. Do we have such feature in Couchbase? We are ...
0
votes
1answer
37 views

Optimal way to check if given sentence(query) contains any of the predefined keywords [closed]

It might look like a simple question already answered countless times, but I could not find the optimal way(using some db). I have a list of few thousands keywords(let's say abusive words). Whenever ...
1
vote
1answer
18 views

couchbase n1ql update gives error 3000 when updating

I have a couchbase document with this structure stored in a bucket named dev_hostels: { "updatedAt": "2019-12-24T12:30:07.175Z", "data": { "type": { "value": "n/a" } } } The n1ql ...
2
votes
1answer
31 views

Spring JPA & Couchbase - com.couchbase.client.java.error.ViewDoesNotExistException: View cat/all does not exist

My Spring boot app is trying to get all documents of type Cat from the Couchbasebucket. There is an index for that: CREATE INDEX cats_idx ON `cats`(_class) WHERE _class = 'com.example.Cat' And ...
0
votes
1answer
34 views

How to use admin REST API in Xamarin application to create new users in couchbase sync gateway?

I am creating a xamarin mobile application and I want to create new users from the mobile application , I know I can create users from sync gateway configuration or from admin REST API , I tried to ...
1
vote
1answer
25 views

What is the use of indexes in Couchbase server?

Can anyone explain what is the use of indexes in Couchbase server in layman terms?
2
votes
0answers
27 views

Spring boot - Couchbase AbstractCouchbaseConfiguration - How to avoid overriding unnecessary methods

I am connecting to couchbase using my spring boot app. It's connecting fine and everything works. Here's my configuration class for a @ReadingConverter. @Configuration @EnableCouchbaseRepositories(...
0
votes
1answer
77 views

504 Gateway Time-out from google cloud platform, but only sometimes

I'm hosting a CouchBase single node cluster in GCP and a flask backend OpenShift cluster which supports angular frontend. The problem is, when a post is called in my flask by my angular, it is taking ...
2
votes
1answer
27 views

How to iterate over emitted values array in Couchbase MapReduce?

I am fetching records from a bucket via the Map function and the results contain different types of records (Entity1, Entity2, Entiy3 and so on). Ex - function (doc, meta) { if(meta.id.split('::')[0] ...
0
votes
2answers
34 views

Spring Data CouchBase Configuration : Database does not exists error

I am trying to connect to couch db from spring data in a spring boot environment. Following are the configurations @Configuration @EnableCouchbaseRepositories(basePackages = {"com.datamigration.dao"...
1
vote
1answer
28 views

Cannot add new bucket through Couchbase console deployed on OpenShift using operators

we have couchbase cluster deployed on Openshift. Couchbase web console is opening but we are not able to add buckets to it. For that we have to mention buckets in Ymal file and then redeploy using ...
1
vote
0answers
23 views

Fatal error: LCB_EINVAL with php sdk for couchbase

So I have couchbase on a docker container, and php and couchbase php sdk on another container. when I try to access the couch base this is what happense: I have a cluster named "Analytics" there is ...
1
vote
1answer
41 views

Can we use Couchbase as the message store for Spring Integration

We are implementing Spring Integration aggregator and using JDBC message data store. In our environment we have Couchbase and Oracle DB. I don't want to use Oracle DB, can we use couchbase as the ...
1
vote
1answer
31 views

Spring Data Couchbase: method findBy object throws java.lang.IllegalArgumentException “Unsupported type for JsonArray”

I created a spring boot project. Specified data model: @Document public class User { @Id private String id; @Field private String firstname; @Field private List<Child>...
1
vote
0answers
28 views

docker and couchbase sdk install

so i am trying to install couchbase php sdk on a php container on docker. everything is fine but there is an error. i have this as my Dockerfile: FROM php:7.3-fpm RUN docker-php-ext-install ...
2
votes
1answer
43 views

Not able to deploy couchbase event function

I have a document "student" in bucket student-records where id is the documentd. { "id":"101", "fname": "abc", "lname": "xyz", "rank": "1", "scholarShip": "", "grade": "" } My job is to ...
0
votes
0answers
27 views

N1Ql synatx sugar for update statement

We know that n1ql comes with syntax sugar like : #{#n1ql.selectEntity} where #{#n1ql.filter} and fname = "abc". How do we write a syntax sugar for update statement? update student set lname="john" ...
1
vote
1answer
13 views

N1ql query to handle datetime scenario

I am having a scenario where I need to fetch all records from students document : "fname": "abc", "timeOfAdmission": 1576042885166, "lname": "rawat", "studentId": "1" where studentId is our ...
1
vote
0answers
16 views

Couchbase.exceptions._TimeoutError while trying to retrieve the document information

I am using python 3 with couchbase client. I have 461378 records in couchbase bucket and RAM used/quota is 3.77GB / 5.78GB. I am trying to retrieve the document by using the following code: ...
2
votes
0answers
62 views

Couchbase view query not returning all matching documents

I created a view with two fields as key for the index like this [type, time]. When I tried to fetch the documents using the below query I was missing some of my documents in the resultset. ...
4
votes
1answer
34 views

Couchbase in docker for integration tests: Make the ports 8092, 8093, 8094 and 8095 configurable to be able to use dockers random ports

I am using Couchbase java client SDK 2.7.9 and am running into a problem while trying to run automated integration tests. In such test we usually use random ports to be able to run the same thing on ...
1
vote
2answers
30 views

Using N1QL reserved words

I have a document with the structure { doc.data.role.level }, I want to access to level property, but using this query SELECT r.data.role.level FROM `hostel` r where r.id = '12345678Z' I got the ...
2
votes
2answers
49 views

Couchbase v6.0 : Update Document content without resetting Document Expiration (TTL) value

I am using.Net Couchbase SDK(CouchbaseNetClient Package) to create a new document and while doing so I set the expiry value for the document. The expiry(TTL) value sets properly and works fine too. ...
0
votes
2answers
49 views

Update nested json array fields in Couchbase

Please share your thought on how to update on below field "UserList": [ { "userAge":33, "empID":32, "empSal":120000, "userDept":{ "deptId":1, "...
0
votes
0answers
13 views

How can I configure different pods to work on different couchbase shards

In my project, I have to run multiple spring schedulers each working on different couchbase shards. So there is one spring boot application which has a scheduler. Each scheduler operates on one shard....
0
votes
0answers
23 views

how to make ehcache searchable with couchbase?

i have to make ehcache searchable with couchbase with the below query. SELECT r.name, r.organizationRoleId, externalids, {a.addressId,a.address1,a.address2,a.address3,a.country,a.city, a.zip,a.state,...
1
vote
1answer
24 views

N1QL Check if the array contains id

I have a document called player::id for each player. Where id is the player's id (auto-incremented). How can I run search operations on the array below such as checking the id's or count? This ...
0
votes
0answers
23 views

How to lock documents in couchbase database and handle TemporaryLockFailureException

I am using Playframework(scalaVersion 2.12.4) with Java 1.8 and Couchbase(Couchbase java-client 2.4.2). I am fetching UserDetails document and updating the same document in the database. My code is ...
0
votes
0answers
38 views

net.spy.memcached.OperationTimeoutException: Timeout waiting for value: waited 1,000 ms

In my application we face operation timeout issue while performe read or write values. While read value from bucket got error as below: net.spy.memcached.OperationTimeoutException: Timeout waiting ...