DEV Community

# activerecord

Posts

đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.
From 8s to 1s: Truly Understanding Rails N+1 by Opening Up ActiveRecord

From 8s to 1s: Truly Understanding Rails N+1 by Opening Up ActiveRecord

2
Comments
10 min read
Stop putting side effects in Rails callbacks

Stop putting side effects in Rails callbacks

Comments
3 min read
validates vs validate in Rails

validates vs validate in Rails

Comments
3 min read
Scopes vs class methods in Rails

Scopes vs class methods in Rails

Comments
3 min read
Count, Length, or Size? Avoiding ActiveRecord Performance Traps

Count, Length, or Size? Avoiding ActiveRecord Performance Traps

Comments
3 min read
HABTM, has_many through, STI, and polymorphic associations in Rails

HABTM, has_many through, STI, and polymorphic associations in Rails

Comments
4 min read
includes vs joins vs preload vs eager_load in Rails

includes vs joins vs preload vs eager_load in Rails

Comments
2 min read
What is a database transaction, and when do you reach for one in Rails?

What is a database transaction, and when do you reach for one in Rails?

Comments
2 min read
Why `present?` Can Hide SQL in Rails

Why `present?` Can Hide SQL in Rails

Comments
3 min read
[PT-BR] pluck vs. select

[PT-BR] pluck vs. select

1
Comments
2 min read
How to Fix N+1 Queries in Rails Like a Pro

How to Fix N+1 Queries in Rails Like a Pro

Comments
4 min read
đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.