News for hackers. Stuff that matters.
Re:Move Fast and Migrate Things: How We Automated Migrations... by existencebox on Wednesday February 06, 2019 @04:48PM (#19100391)
This is an amazing writeup. I'm currently solving the "migrations" problem for a side project of my own, and have basically resolved myself in the short term to be OK with short downtime for the sake of making migrations somewhat trivial.

And honestly? I hate this answer. As a solo dev it's pragmatic, but the solutions described in this article are _SO NICE_ that I'd love to leverage them.

If there's any way that those deprecate_column and rename functionalities could make their way into OSS/upstream support, I'd have a field day. (Those who know more about PG than I do and perhaps may be able to suggest another workaround, feel free, I'm very much learning this space as I go)

If nothing else, thanks to the benchling team for taking the time to write such a clear yet technical expose. This really hit the sweet spot of "explanations without uneccessary verbosity, technical without being impenetrable, and giving sufficient explanations of motivations and tradeoffs/pitfalls" and will give me a north star for where I aim my own DB work.

Re:Move Fast and Migrate Things: How We Automated Migrations... by vineetg on Wednesday February 06, 2019 @05:09PM (#19100610)
Original author here. Thanks for the kind words!

We would love open source some of the work we did - there are a few edge cases to still work out with deprecated_column and renamed_to before I’d be comfortable doing that, but definitely agree that may be generally useful.

Re:Move Fast and Migrate Things: How We Automated Migrations... by BenMorganIO on Wednesday February 06, 2019 @07:23PM (#19101728)
If it's just edge cases, you can just open source it and document the edge cases. The community will likely fork and help with those edge cases.
Re:Move Fast and Migrate Things: How We Automated Migrations... by sebastian on Wednesday February 06, 2019 @11:58PM (#19103111)
I would love to see the code open sourced! (it's ok if you have edge cases pending as long as they have been documented or at least mentioned in a README). Managing and running migrations smoothly without downtime is a very common challenge that a lot of startups face and I think a lot of us have been reinventing the wheel over and over to handle this due to the lack of current offerings.