rawwar commented on code in PR #49015:
URL: https://github.com/apache/airflow/pull/49015#discussion_r2038800944
##########
airflow-core/src/airflow/migrations/versions/0042_3_0_0_add_uuid_primary_key_to_task_instance_.py:
##########
@@ -203,12 +206,26 @@ def upgrade():
if dialect_name == "postgresql":
op.execute(pg_uuid7_fn)
- # TODO: Add batching to handle updates in smaller chunks for large
tables to avoid locking
# Migrate existing rows with UUID v7 using a timestamp-based generation
Review Comment:
One way for this is probably to prefetch row count and calculate the exact
iterations required. But, I wondering if its required
WDYT @kaxil ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]