activerecord-slotted_counters
online_migrations
Our great sponsors
activerecord-slotted_counters | online_migrations | |
---|---|---|
1 | 17 | |
68 | 430 | |
- | - | |
10.0 | 5.7 | |
2 months ago | 19 days ago | |
Ruby | Ruby | |
MIT License | MIT License |
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-slotted_counters
-
counter_culture VS activerecord-slotted_counters - a user suggested alternative
2 projects | 29 Nov 2022
Introducing Active Record slotted counters gem—not-so-blocking counter caches for your models! This gem adds slotted counters support to Active Record counter cache. Slotted counters help to reduce contention on a single row update in case you have many concurrent operations (like updating a page views counter during traffic spikes). Details: [here](https://planetscale.com/blog/the-slotted-counter-pattern)
online_migrations
-
Gemfile of dreams: the libraries we use to build Rails apps
I would like to suggest for consideration a more feature-rich alternative to "strong_migrations" - https://github.com/fatkodima/online_migrations (there is a comparison with it in the README).
-
Is there a linter for non-backwards-compatible DB migrations?
There is kinda such a linter, but for ruby/rails projects - https://github.com/fatkodima/online_migrations.
-
Show HN: Zero-downtime PostgreSQL migrations for Ruby on Rails
Thanks for mentioning. I made a comparison with it - https://github.com/fatkodima/online_migrations#cool-but-ther...
-
Zero-downtime PostgreSQL migrations for Ruby on Rails
changing column types (https://github.com/fatkodima/online_migrations/blob/master/lib/online_migrations/change_column_type_helpers.rb)
I recently created a library - https://github.com/fatkodima/online_migrations.
-
Announcing online_migrations - a gem that catches unsafe migrations in development and provides helpers to run them easier in production
I’m publishing a new gem today. The name is online_migrations, it’s at https://github.com/fatkodima/online_migrations. For those familiar with strong_migrations, it is a "strong_migrations on steroids".
strong_migrations provides you with text guidance on how to run migrations safer, but my gem have actual code helpers (which the gem suggests to use) you can use to do what you want. For example, it has migration helpers for renaming tables/columns (https://github.com/fatkodima/online_migrations/blob/4eec4c1a21689b291fabf4d315cf465f1d859745/lib/online_migrations/schema_statements.rb#L123-L320), changing column types (https://github.com/fatkodima/online_migrations/blob/master/lib/online_migrations/change_column_type_helpers.rb), adding columns with defaults (https://github.com/fatkodima/online_migrations/blob/4eec4c1a21689b291fabf4d315cf465f1d859745/lib/online_migrations/schema_statements.rb#L343-L424), and more. And ability to run heavy data migrations in background (https://github.com/fatkodima/online_migrations/blob/master/BACKGROUND_MIGRATIONS.md).
What are some alternatives?
Polo - Polo travels through your database and creates sample snapshots so you can work with real world data in development.
Scenic - Versioned database views for Rails
active_record_doctor - Identify database issues before they hit production.
SchemaPlus - SchemaPlus provides a collection of enhancements and extensions to ActiveRecord
safe-pg-migrations - Make your PostgreSQL migrations safe
SlackHook - A Simple Interface to Slack Incoming Webhooks Integrations
BatchLoader - :zap: Powerful tool for avoiding N+1 DB or HTTP queries
Rails DB - Rails Database Viewer and SQL Query Runner
Seed Fu - Advanced seed data handling for Rails, combining the best practices of several methods together.
Redis Dashboard - Sinatra app to monitor Redis servers.
Upsert - Upsert on MySQL, PostgreSQL, and SQLite3. Transparently creates functions (UDF) for MySQL and PostgreSQL; on SQLite3, uses INSERT OR IGNORE.
Large Hadron Migrator - Online MySQL schema migrations