Skip to content

Instantly share code, notes, and snippets.

@andrielfn
Created January 13, 2017 13:21
Show Gist options
  • Save andrielfn/2ed5422eff63463267570cd913e423e9 to your computer and use it in GitHub Desktop.
Save andrielfn/2ed5422eff63463267570cd913e423e9 to your computer and use it in GitHub Desktop.

Rails Performance

Upgrade the Ruby version

Use Apache Benchmark (ab) to perform tests over each Ruby version.

Database

There are two mainly ways to do that:

  • Make less queries;
  • Make fast queries;

Mixing indexes

  • lol_dba gem

N+1

  • bullet gem

Counter cache

Rack-Mini-Profiler and Flamegraph

Rails Panel

find_each instead each

@yoshioteruia
Copy link

screen shot 2017-01-13 at 12 15 01 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment