Ruby Execution Models and Threading
How to Write Fast Code in Ruby on Rails - Shopify

How to Write Fast Code in Ruby on Rails - Shopify

10/8/2019

What this post added

This post details strategies for writing fast code in Ruby on Rails, covering Active Record performance (lazy evaluation, selecting less, query cache, indexing), Rails performance (caching, throttling with rack-attack, background jobs with Active Job, dependency management), and Ruby performance (sparing use of metaprogramming, understanding O(n) vs O(1) complexity, minimizing object allocations with `uniq!` vs `uniq`). It also mentions Large Hadron Migrator (LHM) for database migrations.

Read the original post ↗