activerecord-tidb-adapter
ghost_adapter
Our great sponsors
activerecord-tidb-adapter | ghost_adapter | |
---|---|---|
1 | 2 | |
24 | 18 | |
- | - | |
2.4 | 1.5 | |
8 months ago | 4 days ago | |
Ruby | Ruby | |
Apache License 2.0 | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
activerecord-tidb-adapter
-
Build a Rails App with TiDB and the ActiveRecord TiDB Adapter
The activerecord-tidb-adapter provides compatible patches and some tidb-specific functions, such as Sequence.
ghost_adapter
-
Changing Tires at 100mph: A Guide to Zero Downtime Migrations
At least for Rails there are several gems available (ie https://github.com/WeTransfer/ghost_adapter or https://github.com/departurerb/departure) that seamlessly hook into the existing migration system and will run all eligible migrations through gh-ost or pt-osc as needed. You're right that it's not free but it isn't all that far off either.
That said, online schema migrations are a specialized tool designed for very big tables that take hours to run an ALTER TABLE on. If all your tables are small enough that alterations take less than a second or so, don't bother and just block the table for a bit. It's fine.
-
Database... or Goose?
https://github.com/WeTransfer/ghost_adapter integrates gh-ost with activerecord and the departure gem does the same but for pt-osc.
What are some alternatives?
strong_migrations - Catch unsafe migrations in development
safe-pg-migrations - Make your PostgreSQL migrations safe
wt_activerecord_index_spy - A gem to spy queries running with Active Record and report missing indexes
Large Hadron Migrator - Online MySQL schema migrations
Ruby on Rails - Ruby on Rails
database-lab-engine - DBLab enables 🖖 database branching and ⚡️ thin cloning for any Postgres database and empowers DB testing in CI/CD. This optimizes database-related costs while improving time-to-market and software quality. Follow to stay updated.
reshape - An easy-to-use, zero-downtime schema migration tool for Postgres
litestream - Streaming replication for SQLite.
departure - Percona's pt-online-schema-change runner for ActiveRecord migrations.
pg-osc - Easy CLI tool for making zero downtime schema changes and backfills in PostgreSQL
PaperTrail - Track changes to your rails models