Skip to content

Conversation

hpoettker
Copy link
Contributor

The class TaskletStep.ChunkTransactionCallback persists updates of the StepExecution after each chunk. The update of the step execution context happens in a dedicated method, which is currently called independent of whether the step execution context has actually changed. As ExecutionContext provides a dirty flag, it can be checked before the update method is called.

The proposed change is a performance optimization for simple chunk-oriented steps that e.g. do not save state in between chunks. For such steps, the change results in one database round trip less per chunk.

@fmbenhassine
Copy link
Contributor

LGTM 👍 Rebased and merged as 74520a5. Thank you!

@fmbenhassine fmbenhassine added this to the 5.2.0 milestone Feb 12, 2024
@fmbenhassine fmbenhassine added for: backport-to-5.0.x Issues that will be back-ported to the 5.0.x line for: backport-to-5.1.x Issues that will be back-ported to the 5.1.x line labels Feb 12, 2024
@hpoettker hpoettker deleted the check-dirty-flag branch February 12, 2024 12:49
This was referenced Feb 12, 2024
@fmbenhassine fmbenhassine modified the milestones: 5.2.0, 5.2.0-M1 Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: backport-to-5.0.x Issues that will be back-ported to the 5.0.x line for: backport-to-5.1.x Issues that will be back-ported to the 5.1.x line in: core pr-for: enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants