Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check dirty flag of step execution context before update in inner loop #4503

Closed
wants to merge 1 commit into from
Closed

Check dirty flag of step execution context before update in inner loop #4503

wants to merge 1 commit into from

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