Our great sponsors
-
Migrations - I use this gem https://github.com/ka8725/migration_data
-
I may do it from the console or a task if I wanted to modify a large number of records, e.g. something in my Users table. I think you need a sense of how long the update will take - I'm not sure if there's any issue with migrations timing out or such like. If I modify my Users schema it takes 5 minutes or so as it has to make a copy of the table and swap it in and that works fine - https://github.com/soundcloud/lhm
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
We use this technique. https://github.com/Shopify/maintenance_tasks. It is similar to a job (it uses a job under the hood) that can be be paused, interrupted by a deploy, and even aborted.
Related posts
- Migration Magic ✨, Handling Not-Null Constraints in Production with Ruby on Rails
- Gemfile of dreams: the libraries we use to build Rails apps
- Zero-downtime schema migrations for Ruby on Rails
- Zero-downtime PostgreSQL migrations for Ruby on Rails
- online_migrations: a new release with more safe/unsafe operations and ability to reset counter caches in background