spring-projects / spring-projects/spring-data-mongodb

How to pass cursorBatchSize dynamic from application.properties using Meta

Open
#4,318 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: blocked status: on-hold type: enhancement
Dominant language
Java
Stars
1.7k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Current Meta annotation only supports cursorBatchSize as a constant size, would be great if we could build a cursorBatchSizeExpression which can provide a way to read cursorBatchSize as a property.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names the Meta annotation and cursorBatchSize, but no file or test. Start by locating that annotation and its cursorBatchSize handling, then inspect how application.properties values are exposed; done means providing a tested way to supply the batch size dynamically.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, mongodb, spring
Domain
backend, databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.