spring-projects / spring-projects/spring-data-couchbase
ReactiveFindByQueryOperationSupport exists - efficiency
Open
Nobody has claimed this yet.
type: enhancement
- Dominant language
- Java
- Stars
- 284
- Forks
- 197
- PR merge metrics
- No merged PRs in 30d
Description
ReactiveFindByQueryOperationSupport - the exists method checks for count > 0. To determine if (any such) documents exist, it is only necessary to find the first matching document - not all matching documents.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate ReactiveFindByQueryOperationSupport and inspect its exists method and current count-based query behavior. Confirm the operation can determine existence from the first matching document, then run the relevant project tests to verify that exists still returns the correct result without counting all matches.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- databases
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100