Aerie Database Migrations #346
Replies: 5 comments 2 replies
-
Dylan: So I am looking into structured migrations today and have a few thoughts:
would love to have a meeting to discuss this more |
Beta Was this translation helpful? Give feedback.
-
Dylan D Stewart Dylan D Stewart Dylan D Stewart Luke Jurgella Luke Jurgella Matthew L Dailis Dylan D Stewart Dylan D Stewart Dylan D Stewart Matthew L Dailis Matthew L Dailis Dylan D Stewart Ryan R Goetz Ryan R Goetz Dylan D Stewart Dylan D Stewart Matthew L Dailis Dylan D Stewart Matthew L Dailis Ryan R Goetz Ryan R Goetz Ryan R Goetz Ryan R Goetz Matthew L Dailis Ryan R Goetz Matthew L Dailis Matthew L Dailis Ryan R Goetz |
Beta Was this translation helpful? Give feedback.
-
We could definitely enforce the timestamp (or ID) ordering in CI on PR synchronization with a tiny shell script. |
Beta Was this translation helpful? Give feedback.
-
I think once they are a part of a release, they should forever be read only.
|
Beta Was this translation helpful? Give feedback.
-
Reading up more on migrations, I found a couple sources that I liked:
The first source is primarily focused on writing efficient migrations, but it has a lot of links to other good sources. One of those links is to the GitLab contributor documentation (the second source above). This is definitely worth a read - GitLab uses Postgres as well (though they use it via the Ruby/Rails interface), and, unlike many software-as-a-service companies, they need to support user-managed deployments just like we do. They also mention that they used to have a "DOWNTIME" variable set per migration - but that they transitioned from that to zero (ish) downtime migrations. While it would be very cool for Aerie to be able to do zero-downtime migrations, I am not yet convinced that the benefit to users would be enough to outweigh the engineering time we'd need to put in. |
Beta Was this translation helpful? Give feedback.
-
Discuss ideas on how to handle database migrations.
Summary:
https://docs.google.com/document/d/1OXe1zvkchmK4OungzU0H6ehgmVg2Ra7T/edit
Tung's Document:
https://docs.google.com/document/d/19IMkMyVQcuavkcf9hAwG2GnzoMajAyqLd72InSoV9i0/edit
Beta Was this translation helpful? Give feedback.
All reactions