Spring Boot Count Query Issue with Couchbase

Hello Couchbase Community,

I’m currently working on a project using Spring Boot with Couchbase, and I’ve encountered an issue related to counting documents. I’m trying to get a count of documents that match certain criteria, but I’m not sure about the best approach or if there are any specific configurations I need to be aware of.

Here are the details of my setup:

Spring Boot Version: Your Spring Boot Version
Couchbase Version: Your Couchbase Version
Couchbase SDK Version:Your Couchbase SDK Version
Relevant Dependencies: List any relevant Spring Boot or Couchbase dependencies

Problem: I need to count the number of documents in a Couchbase bucket that meet specific criteria using Spring Boot. My current approach involves using describe your approach or code snippet], but it doesn’t seem to work as expected.

  1. What is the recommended way to perform a count operation in Couchbase with Spring Boot?

I appreciate any help or suggestions you can provide!

Thank you,

Are you using Spring Data Couchbase? Or Spring Boot with the Couchbase Java SDK?

This test repository contains several examples of Spring Data Couchbase count methods - spring-data-couchbase/src/test/java/org/springframework/data/couchbase/domain/AirportRepository.java at main · spring-projects/spring-data-couchbase · GitHub

Can you please finish filling in the form you used?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.