HomeElementl

Do Postgres/MySQL table creation in a transaction

Description

Do Postgres/MySQL table creation in a transaction

Summary:
User asked why we don't do this and I didn't have a great answer. Let's do the table creation and alembic writes all in one big transaction.

(There is still some jankiness from the fact that we share alembic configs between the three different storage classes - ideally there would be some way to do the full table creation all in one transaction, but this is still an improvement I think)

Test Plan: BK

Reviewers: prha, alangenfeld

Reviewed By: prha

Differential Revision: https://dagster.phacility.com/D8264

Details

Provenance
dgibsonAuthored on Jun 7 2021, 2:28 PM
Reviewer
prha
Differential Revision
D8264: Do Postgres/MySQL table creation in a transaction
Parents
R1:59b5668839c6: Simplify how we specify the list of available executors to execute_run_host_mode
Branches
Unknown
Tags
Unknown