Benito Serna Tips and tools for Ruby on Rails developers

"Please help me with my n+1 problem..."

May 14, 2021

You are feelling bad for asking it again… “Why active record is ignoring my includes?”.

“Is my fix right?”

Finding “a fix” can make you feel like pro, but… Does it really solves the problem? Is it elegant enough?

You know that includes can sometimes fix the problem… You are just not sure why sometimes it doesn’t.

“I know how to fix the problem!”

But what if you could? What if you knew exactly how to solve your n+1 queries problems? What if you could be the one that help others in your team?… Next week.

It’s true n+1 queries can be a pain, and they will appear… but they don’t need to appear on production.

Undestand the basics to avoid n+1 queries

Start your road to avoid n+1 queries like a pro, with my free ebook “N+1 queries basics”

Start solving n+1 queries problems with total confidence!

You’ll learn just enough fundamentals to be fluent preloading associations with ActiveRecord, and start helping your team to avoid n+1 queries on production.

Start shipping efficient code, sign up and download my free ebook and you’ll be enjoying the power of Rails again, in no time.