spring-projects / spring-projects/spring-framework

Add batch operations support to `DatabaseClient`

Open
#33,812 1 comment 2 reactions 1 assignee View on GitHub

@sdeleuze is already working on this.

Since Oct 29, 2024.

in: data type: enhancement
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

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.