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

improve performance of databasechangelog updates? #247

Open
tooptoop4 opened this issue Jul 2, 2024 · 3 comments
Open

improve performance of databasechangelog updates? #247

tooptoop4 opened this issue Jul 2, 2024 · 3 comments

Comments

@tooptoop4
Copy link

if i have a sql changeset file with 600 different changesets and then add 601st changeset i notice a lot of individual UPDATE sqls (looks like 1 per changeset to update latest time for the hash) are running against the internal liquibase databasechangelog table (in redshift,) if each one takes 300ms then the time adds up. for redshift can these updates be batched up into 1 update?

@tooptoop4
Copy link
Author

what do u think @filipelautert @wwillard7800 ?

@filipelautert
Copy link
Contributor

@tooptoop4 right now there is no way to batch them. But it should only happen if you are upgrading from a version before 4.22 to any other after that - and only once. Is that your case?

@tooptoop4
Copy link
Author

with no version upgrade, just a new changeset added to .sql file its going through and doing update on all rows

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

No branches or pull requests

2 participants