Questions tagged [spring-data-couchbase]

Spring Data Couchbase project provides Spring Developers a POJO centric model for interacting with documents stored in Couchbase.

Developers use a Repository style data access pattern and Spring Data Couchbase adds query derivation based on N1QL (a superset of SQL), support for Spring configuration of the database client, and the ability to support the @Cacheable annotation building on the Spring Cache project.

Resources

Related tags

380 questions
2
votes
1 answer

Connecting to multiple buckets on Couchbase cluster with Spring

in my project I have a Couchbase cluster. I also have different buckets for different datas. I want to configure them in CouchbaseConfiguration file as it is specified inDocumentation but I got NullPointerException. I am using spring-data-couchbase…
erondem
  • 482
  • 1
  • 11
  • 24
2
votes
1 answer

Efficient way of getting count of a particular document from Couchbase

We have a Couchbase DB and a spring boot application that interacts with it. The database has many types of documents amongst which we have order transaction documents. One of the queries is to get the Count of the number of Order transaction…
humbleCoder
  • 667
  • 14
  • 27
2
votes
0 answers

Couchbase SDK 3.x Spring data cache

Whats the recommended way to create CouchBaseCacheManager instance using default Couchbase Collection ? Couldn't find a good code example or description on the web.
2
votes
1 answer

Multiple customConversions beans in application while using couchbase and redis

I am using couchbase as DB and Redis for caching purposes in my application. However, I am not able to make it work. The application throws the following error during startup. No qualifying bean of type…
2
votes
3 answers

Not able to prevent couchbase autoconfiguration during tests

I am trying to prevent the application from attempting to connect to the DB while running the Unit tests. Following is what I have done. @SpringBootApplication(exclude = { CouchbaseDataAutoConfiguration.class, …
2
votes
0 answers

Spring Data Couchbase - Getting java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1 for a paging query

I am working on a requirement for implementing pagination using Spring Data Couchbase[Spring Boot version 2.4.2]. Custom Repository interface extends PagingAndSortingRepository @Repository public interface DocumentEntityRepository extends…
harry
  • 31
  • 3
2
votes
0 answers

Java - Couchbase SDK 3.0 is throwing FeatureNotAvailableException exception

I am running Spring boot with couchbase in OpenShift. My e1 and e2 environments are working fine. But when i move the code to e3 environment, i am getting below exception. Can someone help me to resolve the issue? Version…
2
votes
1 answer

How to invalidate Couchbase cache after update document

I am using Couchbase as a cache for my spring boot application. but after updating my document i should wait for cache to expire in order to be refreshed. so basically deleting or updating any document dont invalidate it. Here is my spring data…
Lho Ben
  • 2,053
  • 18
  • 35
2
votes
1 answer

CouchBase Tries to Create Indexes Every Time When Application Rerun

I use Java SDK 3.0.3 as a CouchBase client. Index configuration is handled using following @Configuration @Bean public void createIndexes() { QueryIndexManager indexManager = couchbaseCluster.queryIndexes(); …
2
votes
0 answers

Couchbase Document Expiry isn't working with spring-data-couchbase:.4.0.3.RELEASE

Tried setting expiry to 60 seconds on a document as mentioned in below reference document with spring-data-couchbase-4.0.3.RELEASE lib. However, the expiry doesn't work as resets the value to 0. spring-data-couchbase reference document I have found…
sandeep
  • 21
  • 4
2
votes
1 answer

Spring Boot Couchbase Reactive isn't supporting Pagination

I'm trying to implement Pagination in my Reactive WebFlux app and my DB is Couchbase. The Spring Data Couchbase doc allows me to pass Pageable as an argument in my Repository. Flux findByFirstnameOrderByLastname(String firstname, Pageable…
2
votes
1 answer

N1qlPrimaryIndexed replacement

After update the project to Spring Data Couchbase 4, the annotation N1qlPrimaryIndexed appears as deprecated, @Repository @N1qlPrimaryIndexed public interface HostelRepository extends CouchbaseRepository { } I would like to know if…
2
votes
1 answer

Spring data couchbase 4.0.0 - Save Object with list is always empty

I am currently upgrading my project to spring data couchbase 4.0.0 and I am now experiencing problems when I want to save a Object with a list. I am not sure if there is an error in my code or this is a bug, but I could not find any informationen…
2
votes
0 answers

understanding the impact of "More than 1 Couchbase Environments found"

I'm trying to understand the true impact of using multiple couchbase environments and the following warning: More than 1 Couchbase Environments found (2), this can have severe impact on performance and stability. Reuse environments! I've done some…
2
votes
0 answers

Spring Boot Couchbase Repository throws error 5001 during query

I am using Springboot 2.1.4 with spring-boot-data-couchbase. I am trying to make a paginated query using like operator for one property. These are the artifacts: Repository @N1qlPrimaryIndexed @ViewIndexed(designDoc = "LogicalResource", viewName…
Herber230
  • 141
  • 1
  • 12