8000 remove txn for diff calculation in pc pipeline by ajtmccarty · Pull Request #6594 · opsmill/infrahub · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

remove txn for diff calculation in pc pipeline #6594

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

Merged
merged 1 commit into from
Jun 3, 2025

Conversation

ajtmccarty
Copy link
Contributor

this transaction is not necessary. the final step of diff update is to save the metadata for the diff (branch, from time, to time, etc.) and this acts as a final stamp indicating that the diff is complete. if the diff update fails for some reason, there will be some unused nodes left behind in the database, but they will be ignored b/c the DiffRoot nodes will not have any of the metadata that we use to query for them.

@ajtmccarty ajtmccarty requested a review from a team as a code owner June 2, 2025 18:54
@github-actions github-actions bot added the group/backend Issue related to the backend (API Server, Git Agent) label Jun 2, 2025
Copy link
codspeed-hq bot commented Jun 2, 2025

CodSpeed Performance Report

Merging #6594 will not alter performance

Comparing ajtm-06022025-no-diff-txn (5b1fa49) with stable (9f0d3be)

Summary

✅ 10 untouched benchmarks

Copy link
Contributor
@ogenstad ogenstad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there will be some unused nodes left behind in the database, but they will be ignored b/c the DiffRoot nodes will not have any of the metadata that we use to query for them.

Do we need to have some cleanup job for these? I.e. something that runs once a day and clears out entries older than a month or so..

@wvandeun wvandeun merged commit fd550ca into stable Jun 3, 2025
29 checks passed
@wvandeun wvandeun deleted the ajtm-06022025-no-diff-txn branch June 3, 2025 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
group/backend Issue related to the backend (API Server, Git Agent)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0