Request Details

Route
/api_complex GET
Timestamp
Nov 20, 2026 2:53 PM
Duration
145.87 ms
Status
204
Response Size
13 KB
Error
No

Performance Breakdown

Database
9.1% (6 queries)
View Rendering
11.4%
Application Logic
79.4%
Other Operations
0.0%
Total Operations
16
Slowest Operation
145.87 ms

Request Trace

How to read this

Each row is a layer of your stack. Many short Database bars means N+1 queries — fix with includes(). A wide Action bar with little Database time means slow Ruby code. A wide View bar usually means a partial rendered in a loop.

Action
View
Database
Other
Action
View
Database
0.0ms 229.6ms 459.2ms 688.8ms 918.4ms

Operations

How to use this

Sort by Impact to find your biggest wins. Click any row for details and optimisation suggestions. The same SQL appearing multiple times is an N+1 — fix with includes(). A single operation above 50% impact is your highest priority.

Operation Duration Impact Timeline Actions
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 6 ms 4.1%
home#api_complex 146 ms 100.0%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 14 ms 9.6%
users/index 14 ms 9.6%
home/index 29 ms 19.9%
home#api_complex 146 ms 100.0%
home#api_complex 146 ms 100.0%
SELECT name FROM users 13 ms 8.9%
SELECT * FROM users LEFT JOIN posts ON users.id = posts.user_id LEFT JOIN comments ON posts.id = comments.post_id LEFT JOIN tags ON posts.id = tags.post_id LEFT JOIN categories ON posts.category_id = categories.id WHERE users.active = ? AND posts.publi... 31 ms 21.3%
SELECT name FROM users 11 ms 7.5%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 9 ms 6.2%
home/index 10 ms 6.9%
home#api_complex 146 ms 100.0%
home#api_complex 146 ms 100.0%
layouts/application 13 ms 8.9%
users/index 39 ms 26.7%