activerecord-tidb-adapter
TiDB adapter for ActiveRecord, allows the use of TiDB as a backend for ActiveRecord and Rails apps. (by pingcap)
departure
Percona's pt-online-schema-change runner for ActiveRecord migrations. (by departurerb)
Our great sponsors
activerecord-tidb-adapter | departure | |
---|---|---|
1 | 1 | |
24 | 134 | |
- | 0.7% | |
2.4 | 8.0 | |
8 months ago | 2 months ago | |
Ruby | Ruby | |
Apache License 2.0 | GNU General Public License v3.0 or later |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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
Posts with mentions or reviews of activerecord-tidb-adapter.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-08-27.
-
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.
departure
Posts with mentions or reviews of departure.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-05-04.
-
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.
What are some alternatives?
When comparing activerecord-tidb-adapter and departure you can also consider the following projects:
reshape - An easy-to-use, zero-downtime schema migration tool for Postgres
data-migrate - Migrate and update data alongside your database structure.
pg-osc - Easy CLI tool for making zero downtime schema changes and backfills in PostgreSQL
ghost_adapter - Run ActiveRecord migrations through gh-ost
janet - A dynamic language and bytecode vm
litestream - Streaming replication for SQLite.
gh-ost - GitHub's Online Schema-migration Tool for MySQL