Hacker GitHub

← All repos

github/gh-ost

View on GitHub ↗ ★ 13,621 Go

GitHub's Online Schema-migration Tool for MySQL

42 mentions on Hacker News by 36 people: 4 stories, 38 comments · first 2016-08-02 · latest 2025-03-01

Mentions per year 42 mentions · busiest year 2018 (12)
20082026
  1. …always online migrations. iirc githhub's migration tool was open source right? Edit: yes it was https://github.com/github/gh-ost
  2. …large relational databases is online schema change tools like https://github.com/shayonj/pg-osc and https://github.com/github/gh-ost (the latter developed for GitHub’s monolith). It’s just too difficult to model what migrations will cause…
  3. ▲ 17
    "At GitHub we do not use foreign keys, ever, anywhere" (2016)
    story by shubhamjain · 2024-01-23 · 14 comments
  4. This github issue is often linked when this topic is discussed: https://github.com/github/gh-ost/issues/331 > Personally, it took me quite a few years to make up my mind about whether foreign keys are good or evil, and for the past 3 years…
    comment by lrobinovitch · 2023-12-21 · in Do you really need foreign keys?
  5. Sounds like it's basically explained in the gh-ost readme https://github.com/github/gh-ost#how I think it amounts to "use views to decouple access to the table with a fixed interface" and "use triggers for migrating data between tables"
  6. With foreign keys, I can't use https://github.com/github/gh-ost for zero downtime migrations. Instant deal breaker, because schema changes are inevitable given business evolution.
  7. …version control benefits of Dolt and keep an existing MySQL or MariaDB database. #. github/gh-ost: https://github.com/github/gh-ost : > Instead, gh-ost uses the binary log stream to capture table changes, and asynchronously applies them…
  8. check out gh-ost migrations: https://github.com/github/gh-ost
  9. Gh-ost is the new hotness. Simple to use and lots of great features: https://github.com/github/gh-ost
    comment by ericbarrett · 2023-04-17 · in Ask HN: Is PostgreSQL better than MySQL?
  10. Use SQL without foreign keys for best performance [0]. [0]: https://github.com/github/gh-ost/issues/331#issuecomment-266...
  11. …on large tables with billions of records. They make online schema changes impossible. More details: https://github.com/github/gh-ost/issues/331#issuecomment-266...
  12. …I had the impression you have to setup a normal non-RDS replica attached to your RDS master? [1] https://github.com/github/gh-ost/blob/master/doc/rds.md
    comment by darkwater · 2022-05-05 · in Zero downtime migrations
  13. …is probably the state of the art, and uses the binary log stream to replicate the data. [1] https://github.com/github/gh-ost
    comment by antoncohen · 2022-05-05 · in Zero downtime migrations
  14. …to every company sooner or later, but if a company the size of GitHub can still do without ( https://github.com/github/gh-ost/issues/331#issuecomment-266... ) it does become a little bit of a "you do not have google problems" type…
  15. …likely have some system process that does this instead of a simple `DELETE FROM` which cascades. 1. https://github.com/github/gh-ost/issues/331#issuecomment-266...
    comment by anonfunction · 2022-04-15 · in We lost 54k GitHub stars
  16. …matter that it takes forver? Nope because it doesn't lock tables. And even if you do have triggers https://github.com/github/gh-ost you can still do it.
  17. For MySQL we use github's tool gh-ost https://github.com/github/gh-ost There is a few tech restrictions, but if your database meets that it works great. I migrated huge tables with absolutely no impact on production
  18. …changes in Vitess. Links: - https://www.percona.com/doc/percona-toolkit/3.0/pt-online-sc... - https://github.com/github/gh-ost - Past HN discussion: https://news.ycombinator.com/item?id=16982986 - https://dev.mysql.com/doc/refman/8.0/en/inn…
    comment by shlomi-noach · 2021-12-06 · in Leaving MySQL
  19. …some time in documenting how it works. Similarly, I co-designed and was the main author for gh-ost, https://github.com/github/gh-ost , as part of the database infrastructure team at GitHub. We developed gh-ost because the existing schema…
    comment by shlomi-noach · 2021-11-17 · in PlanetScale is now generally available
  20. …model where I don't pay for e.g. RDS allocation. And I say that as a really big PostgreSQL fan. [1] https://github.com/github/gh-ost
    comment by aseipp · 2021-11-17 · in PlanetScale is now generally available
  21. …Disclosure: I'm the author of Skeema, but have not worked for or with GitHub in any capacity. [1] https://github.com/github/gh-ost [2] https://github.blog/2020-02-14-automating-mysql-schema-migra... [3]…
    comment by evanelias · 2021-03-12 · in GitHub was down
  22. …migrations cause downtime [1]: https://stackoverflow.com/questions/805363/how-do-i-rename-a... [2]: https://github.com/github/gh-ost
    comment by srcreigh · 2021-02-19 · in Many small queries are efficient in SQLite
  23. …don't have triggers/foreign keys on a given MySQL table, Gh-ost¹ solves the DDL locking issues. ¹= https://github.com/github/gh-ost
  24. …DB management tooling ( https://github.com/openark/orchestrator ) and online migration tooling ( https://github.com/github/gh-ost )
    comment by t3rabytes · 2021-01-25 · in Improving how we deploy GitHub
  25. …obviously it is workable, but I think every big MySQL org ends up with a tool/workflow like gh-ost: https://github.com/github/gh-ost which have their own set of challenges, like not playing well with foreign keys.
  26. Check out https://github.com/github/gh-ost
  27. ▲ 349
    We do not use foreign keys (2016)
    story by Scarbutt · 2019-11-08 · 320 comments
  28. …able to do them on a replica and then run tests is cool. If you use MySQL look into Githubs tool https://github.com/github/gh-ost
  29. …have to worry about updating foreign keys. Here are some of Github's reasons for not using them: https://github.com/github/gh-ost/issues/331 I think this is pretty normal for heavy MySQL users, honestly. When I was at Eventbrite we didn't…
  30. …I historically found more tools for online schema changes in the mysql sphere, such as gh-ost ( https://github.com/github/gh-ost )
  31. Yeah. See https://github.com/github/gh-ost/issues/507#issuecomment-338... on how to do it in a performant way.
    comment by zmoazeni · 2018-05-03 · in GitHub's online schema migration for MySQL
  32. …[4] https://dev.mysql.com/doc/refman/5.6/en/innodb-create-index-... [5] https://github.com/github/gh-ost/issues/507#issuecomment-338...
    comment by zmoazeni · 2018-05-03 · in GitHub's online schema migration for MySQL
  33. shlomi-noach linked to https://github.com/github/gh-ost/issues/331 in another comment. That goes into some of the reasons to avoid foreign keys. At a past job where we had a complex MySQL setup, I set up a slack autoresponse to post "Just…
  34. …(the foreign key constraint has a unique name in a schema) -- but it should work. See discussion in https://github.com/github/gh-ost/issues/507 It is true that it is not on our roadmap to implement FK support for gh-ost (see…
    comment by shlomi-noach · 2018-05-03 · in GitHub's online schema migration for MySQL
  35. Yes, https://github.com/github/gh-ost/search?utf8=%E2%9C%93&q=go-...
    comment by tejasmanohar · 2018-05-03 · in GitHub's online schema migration for MySQL
  36. ▲ 248
    GitHub's online schema migration for MySQL
    story by qiuyesuifeng · 2018-05-03 · 94 comments
  37. ▲ 4
    GitHub's Online Schema Migrations for MySQL
    story by mooreds · 2018-04-08 · 0 comments
  38. …- FB's OSC ( https://www.facebook.com/notes/mysql-at-facebook/online-sche... ) - GH's gh-ost ( https://github.com/github/gh-ost )
    comment by michaeldejong · 2018-03-24 · in Managing database schema changes without downtime
  39. …tools have "given up" on foreign key constraints. [0] http://code.openark.org/forge/openark-kit [1] https://github.com/github/gh-ost
    comment by michaeldejong · 2018-03-24 · in Managing database schema changes without downtime
  40. …ttps://github.com/yoshinorim/mha4mysql-manager ), ProxySQL ( http://www.proxysql.com/ ), and gh-ost ( https://github.com/github/gh-ost ), along knowledge and best practices shared by those organization.
    comment by antoncohen · 2017-12-06 · in PostgreSQL HA cluster failure: a post-mortem
  41. Another tool in this category is gh-ost by github: https://github.com/github/gh-ost Its main advantage seems to be that it doesn't require triggers on the original table (it works by subscribing to the replication log), thus not making…
    comment by perlgeek · 2017-02-02 · in Online migrations at scale
  42. …docs[0]: Amazon RDS and Google Cloud SQL are probably not supported (due to SUPER requirement) [0]: https://github.com/github/gh-ost/blob/master/doc/requirement...