spring-projects / spring-projects/spring-framework
Add batch operations support to `DatabaseClient`
@sdeleuze is already working on this.
Since Oct 29, 2024.
- Dominant language
- Java
- Stars
- 60.2k
- Forks
- 38.8k
- Avg merge
- 5d 2h
- Merged PRs (30d)
- 27
Description
As discussed in #27229, this issue intends to add support to batch operations support to R2DBC DatabaseClient.
The starting point is bind(params -> …) as proposed in this comment of the PR, but we should also support iterating over a collection without requiring a wrapper class or an AtomicReference.
Another concern is that bind(params -> …) looks too implicit in terms of name, could confuse users versus bindValues(List<?> source) which has a totally different meaning.
Depending on how the implementation goes, we may create a follow-up issue for a similar feature in JdbcClient.
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.
Assessment
This issue has not been assessed yet.