fast_page VS Large Hadron Migrator

Compare fast_page vs Large Hadron Migrator and see what are their differences.

fast_page

Blazing fast pagination for ActiveRecord with deferred joins ⚡️ (by planetscale)

Large Hadron Migrator

Online MySQL schema migrations (by soundcloud)
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.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
fast_page Large Hadron Migrator
2 3
292 1,818
1.0% 0.3%
2.9 0.0
10 months ago 8 months ago
Ruby Ruby
Apache License 2.0 BSD 3-clause "New" or "Revised" License
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.

fast_page

Posts with mentions or reviews of fast_page. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-08-21.
  • We switched to cursor-based pagination
    2 projects | news.ycombinator.com | 21 Aug 2022
    There are ways to mitigate the (although not eliminate) the slowing down of offset/limit pagination in later pages. The technique is called a "deferred join" and it is most effective in MySQL. The basic idea is to paginate as little data as necessary, and then do a self-join to get the rest of the data for a single page.

    You can read more about it here: https://aaronfrancis.com/2022/efficient-pagination-using-def... or here https://planetscale.com/blog/fastpage-faster-offset-paginati....

    There are libraries for Laravel (https://github.com/hammerstonedev/fast-paginate) and Rails (https://github.com/planetscale/fast_page) as well!

    Cursor based pagination is wonderful, but sometimes you're stuck with offset/limit for whatever reason. Might as well make it fast.

  • Faster offset pagination for Rails apps
    2 projects | news.ycombinator.com | 16 Aug 2022
    In both Django and Rails, passing a QuerySet or ActiveRecord::Relation as an argument to a filter/where creates a subquery - in this case, https://github.com/planetscale/fast_page/blob/main/lib/fast_... creates SELECT ... WHERE id IN (SELECT id FROM ...).

    So it's not exactly an inner join, but in theory it will be optimized to the same query plan as an inner join. That said, https://stackoverflow.com/questions/2577174/join-vs-sub-quer... has lots of commentary on why this shouldn't be depended on.

Large Hadron Migrator

Posts with mentions or reviews of Large Hadron Migrator. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-12-03.
  • GitHub downtime root cause analysis
    4 projects | /r/programming | 3 Dec 2021
    No you didn't. They're doing what is often referred as "online schema change" using https://github.com/github/gh-ost (but the concept is the same than percona's pt-online-schema-change, or https://github.com/soundcloud/lhm.
  • Database... or Goose?
    4 projects | /r/ruby | 28 Jun 2021
    Is there anything similar for MySQL? There is https://github.com/soundcloud/lhm but it's pretty much outdated nowadays
  • Do you use migrations for data manipulations? What are the pro's and con's ?
    3 projects | /r/rails | 17 Feb 2021
    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

What are some alternatives?

When comparing fast_page and Large Hadron Migrator you can also consider the following projects:

fast-paginate - A fast implementation of offset/limit pagination for Laravel.

Squasher - Squasher - squash your old migrations in a single command

Scenic - Versioned database views for Rails

Lol DBA - lol_dba is a small package of rake tasks that scan your application models and displays a list of columns that probably should be indexed. Also, it can generate .sql migration scripts.

PgHero - A performance dashboard for Postgres

Foreigner - Adds foreign key helpers to migrations and correctly dumps foreign keys to schema.rb

Seed dump - Rails 4/5 task to dump your data to db/seeds.rb

BatchLoader - :zap: Powerful tool for avoiding N+1 DB or HTTP queries

DatabaseValidations - Database validations for ActiveRecord

Blazer - Business intelligence made simple

Seedbank - Seedbank gives your seed data a little structure. Create seeds for each environment, share seeds between environments and specify dependencies to load your seeds in order. All nicely integrated with simple rake tasks.