django-postgres-extra icon indicating copy to clipboard operation
django-postgres-extra copied to clipboard

feat: Add option to run partition migration command outside transaction

Open rpradal opened this issue 1 year ago • 1 comments

Having non atomic management command can help reduce lock contention.

In this PR a new atomic option has been added to the PostgresPartitioningConfig class. If set to false all changes will be done from outside a transaction. This option is set to True by default so it does not break retrocompatibility.

rpradal avatar May 13 '24 07:05 rpradal

@rpradal What is the use case here? What pain point are you experiencing that motivated this change?

kingbuzzman avatar May 19 '25 05:05 kingbuzzman