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

Patch-API: avoid committing on GET endpoints #378

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

fschuch
Copy link
Member

@fschuch fschuch commented Oct 12, 2023

What

This PR applies a simple patch in the API code to avoid running session.commit() against the database while only read queries are run.

Porting changes from omnivector-solutions/license-manager#284

Why

Enhance and track performance.


Peer Review

Please follow the upstream omnivector documentation concerning
peer-review guidelines.

@fschuch fschuch force-pushed the patch(api)-avoid-commiting-in-get-endpoints branch from c5561ba to 4eccdfa Compare October 12, 2023 13:59
@fschuch fschuch merged commit b9f7e5e into main Oct 12, 2023
@fschuch fschuch deleted the patch(api)-avoid-commiting-in-get-endpoints branch October 12, 2023 18:58
omnivector-qa pushed a commit that referenced this pull request Oct 12, 2023
fschuch added a commit that referenced this pull request Oct 12, 2023
(cherry picked from commit b9f7e5e)

Co-authored-by: Felipe N. Schuch <felipe@omnivector.solutions>
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.

2 participants