Skip to content

GH-1701 - Fix JPA event publication delete batching#1702

Open
char-yb wants to merge 1 commit into
spring-projects:mainfrom
char-yb:fix/gh-1702-jpa-publication-delete-batching
Open

GH-1701 - Fix JPA event publication delete batching#1702
char-yb wants to merge 1 commit into
spring-projects:mainfrom
char-yb:fix/gh-1702-jpa-publication-delete-batching

Conversation

@char-yb
Copy link
Copy Markdown

@char-yb char-yb commented May 20, 2026

Summary

  • Bind JPA event publication delete queries to the current identifier batch instead of the original full identifier list.
  • Add a focused unit test covering delete batching for more than DELETE_BATCH_SIZE identifiers.

Details

JpaEventPublicationRepository.deletePublications(…) already splits identifiers into batches of 100, but each delete query was still binding the full identifiers list. For inputs larger than the batch size, this caused the same oversized IN parameter list to be sent repeatedly and did not actually honor the batching limit.

This change keeps the existing batching behavior and binds each query to the current batch.

Bind each delete query to the current identifier batch instead of

the original full identifier list.

Signed-off-by: char-yb <uiurihappy@naver.com>
@char-yb char-yb changed the title GH-1702 - Fix JPA event publication delete batching GH-1701 - Fix JPA event publication delete batching May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant