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

Fix issue with config autoincrements getting too large #2298

Merged
merged 4 commits into from
Apr 6, 2023

Conversation

IsaacMilarky
Copy link
Contributor

@IsaacMilarky IsaacMilarky commented Apr 6, 2023

Fix add_or_update_settings to not use upsert if the setting already exists. This was incrementing the autoincrement to much because of the autoincrement. This is because postgresql's upsert functionality works by inserting the new record and then deleting the old one which increments the autoincrement. This was causing issues when augur was being run many times in sequence.

This PR fixes #2145

Signed commits

  • Yes, I signed my commits.

…xists. This was incrementing the autoincrement to much bc of the autoincrement.

Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
Signed-off-by: Isaac Milarsky <imilarsky@gmail.com>
@IsaacMilarky IsaacMilarky merged commit 689c84e into dev Apr 6, 2023
@IsaacMilarky IsaacMilarky deleted the config-autoincrement-fix branch April 6, 2023 20:19
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