Hello
Here is an example of heavy DB migration (postgresql):
run the following statement in a separate transaction unless it returns zero
WHERE id in
( RETURNING
1FROM updatedUpdating not so many rows in each step saves the live database from suffering from long transactions and locked rows, and looping guarantees all rows to be updated.
Is it possible to perform such a loop (execute some statement in a separate transaction repeatedly unless it returns zero) using any of Liquibase migration formats, e.g. using XML includes or whatever?
Regards,
Alexey
-
Learn
-
Resources
-
Free Tools
OSS Risk Scanner Database DevOps Risk AssessmentCheat Sheets
Snowflake + Liquibase Databricks + Liquibase -
eBooks
6 Liquibase Community Risks & How to Avoid Guide: SOC 2 Compliance at the Database Layer Guide: Quantify the Value of Liquibase Secure -
Comparison Guides
Liquibase vs. Flyway Liquibase vs. Bytebase Liquibase Community vs Liquibase Secure
-
- Quickstart
- Get Started
- Documentation
- University
-
Resources
- Connect
- Contribute
- Join
- Blog