-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: PagoPA-2483 V3 DB debtor fields 2️⃣ ㏈ #278
base: main
Are you sure you want to change the base?
Conversation
https://github.com/pagopa/pagopa-debt-position.git into PAGOPA-2483-v3-DB-debtor-fields Conflicts: src/main/resources/db/migration/V022__ALTER_PO_DEBTOR_FIELDS.sql
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How it was tested?
We need to get some performance and timing insight on data migration before merge it
src/main/resources/db/migration/V022__ALTER_PO_DEBTOR_FIELDS.sql
Outdated
Show resolved
Hide resolved
DECLARE | ||
batch_size INT := 10000; -- Batch size | ||
rows_updated INT; | ||
BEGIN |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The cycle is all in one transaction, what is the acquired lock?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right, it's a single transaction so the lock on the table is held until the end (even if I do updates by block size). I correct.
I tested in dev by manually launching the script. It takes a few ms. We can also test UAT by cleaning everything up (as I did in DEV) so that it can then be re-executed via flyway |
https://github.com/pagopa/pagopa-debt-position.git into PAGOPA-2483-v3-DB-debtor-fields
https://github.com/pagopa/pagopa-debt-position.git into PAGOPA-2483-v3-DB-debtor-fields
https://github.com/pagopa/pagopa-debt-position.git into PAGOPA-2483-v3-DB-debtor-fields
https://github.com/pagopa/pagopa-debt-position.git into PAGOPA-2483-v3-DB-debtor-fields
Quality Gate passedIssues Measures |
This pull request does not contain a valid label. Please add one of the following labels: |
Depends on: PagoPA-2427
List of Changes
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: