Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Backend
/
Ruby on Rails
Which test best proves that a Rails N+1 regression is fixed?
from Ruby on Rails
Rails 8.1.3.1 / Ruby 4.0.6
intermediate
1 min
Which test best proves that a Rails N+1 regression is fixed?
Render or serialize a fixed-size page with its associations and assert a bounded SQL count.
Check that includes(:customer) appears in the controller source.
Call Order.count and assert that it returns the fixture count.
Increase the database connection pool until the page responds.
Check
Ask AI about this kata
Report an error
previous kata
What does this Rails strong-parameters script print?
Predict the output
next kata
Review a generated order update
Review AI code
A new version is available
Reload