
From 8s to 1s: Truly Understanding Rails N+1 by Opening Up ActiveRecord
I added includes and the page was still N+1 We had an admin page listing couriers, each...
Tag archive

I added includes and the page was still N+1 We had an admin page listing couriers, each...

Callbacks are one of those Rails features that feel great for about three months and then quietly...

The difference between validates and validate in Rails is one letter, and that letter changes...

Scopes and class methods in Rails do almost the same job, which is exactly why the question trips...

I remember when I first started with Rails, I thought .count, .length, and .size were exactly the...

Once you're past belongs_to and has_many, Rails gives you four more association tools that confuse a...

These four all deal with associations, and they're easy to mix up. The way I keep them straight is to...

A transaction groups several database writes into one atomic unit. Either all of them commit, or none...

flag_shih_tzu v1.0.0 changes the default query mode from IN lists to bit operators for safer rolling deploys.
pluck No Rails, temos o pluck, que retorna um array com os valores dos atributos que você...
Why predicate-like checks on Active Record associations can quietly cross the database boundary.

Very often I find myself writing small Ruby scripts to scrape data, process CSV files, or build a...