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

[DM-41951] setAutoCommit to false #98

Merged
merged 1 commit into from
Dec 12, 2023
Merged

[DM-41951] setAutoCommit to false #98

merged 1 commit into from
Dec 12, 2023

Conversation

cbanek
Copy link
Contributor

@cbanek cbanek commented Dec 5, 2023

By setting auto commit to false, it should reduce the memory usage and seems to be one of the parts of making sure we use a cursor for the select statements. If we don't use a cursor then the jdbc driver reads everything into memory before returning it.

This seems to be holding a lot of memory up on the server by holding
open a transaction, but we don't need a transaction just for SELECTs.
@cbanek cbanek changed the title [DM-41951] See if memory exhausts when using this ResultsStoreImpl [DM-41951] setAutoCommit to false Dec 12, 2023
@cbanek cbanek merged commit 0d87ff1 into master Dec 12, 2023
2 checks passed
@cbanek cbanek deleted the tickets/DM-41951 branch December 12, 2023 22:08
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