DEV Community

Ruby on Rails Interview Questions Series' Articles

Back to Hassan Farooq's Series
The N+1 Query Problem
Cover image for The N+1 Query Problem

The N+1 Query Problem

Comments 4
2 min read
How do you know you need a database index?
Cover image for How do you know you need a database index?

How do you know you need a database index?

Comments 2
3 min read
What is a database transaction, and when do you reach for one in Rails?
Cover image for 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
includes vs joins vs preload vs eager_load in Rails
Cover image for includes vs joins vs preload vs eager_load in Rails

includes vs joins vs preload vs eager_load in Rails

Comments
2 min read
HABTM, has_many through, STI, and polymorphic associations in Rails
Cover image for HABTM, has_many through, STI, and polymorphic associations in Rails

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

Comments
4 min read
Fat controllers, fat models, and the layer MVC forgot
Cover image for Fat controllers, fat models, and the layer MVC forgot

Fat controllers, fat models, and the layer MVC forgot

Comments
4 min read
Stop putting side effects in Rails callbacks
Cover image for Stop putting side effects in Rails callbacks

Stop putting side effects in Rails callbacks

Comments
3 min read
How to add a NOT NULL column to a large table safely in Rails
Cover image for How to add a NOT NULL column to a large table safely in Rails

How to add a NOT NULL column to a large table safely in Rails

Comments
4 min read
Scopes vs class methods in Rails
Cover image for Scopes vs class methods in Rails

Scopes vs class methods in Rails

Comments
3 min read
validates vs validate in Rails
Cover image for validates vs validate in Rails

validates vs validate in Rails

Comments
3 min read
Building a production-ready create endpoint in Rails
Cover image for Building a production-ready create endpoint in Rails

Building a production-ready create endpoint in Rails

Comments
3 min read
Pagination, filtering, and sorting in a Rails JSON API
Cover image for Pagination, filtering, and sorting in a Rails JSON API

Pagination, filtering, and sorting in a Rails JSON API

Comments
4 min read