Request Details

Route
/api_complex GET
Timestamp
Sep 22, 2026 12:14 AM
Duration
194.78 ms
Status
204
Response Size
64 KB
Error
No

Performance Breakdown

Database
2.7% (3 queries)
View Rendering
6.0%
Application Logic
91.3%
Other Operations
0.0%
Total Operations
12
Slowest Operation
194.78 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 320.2ms 640.3ms 960.5ms 1280.7ms

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
home#api_complex 195 ms 100.0%
home#api_complex 195 ms 100.0%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 1 ms 0.5%
home#api_complex 195 ms 100.0%
home#api_complex 195 ms 100.0%
users/index 9 ms 4.6%
home/index 39 ms 20.0%
INSERT INTO posts (user_id, title, content, published, created_at, updated_at) VALUES (?, ?, ?, ?, ?, ?) 1 ms 0.5%
home#api_complex 195 ms 100.0%
SELECT users.* FROM users LEFT JOIN posts ON users.id = posts.user_id LEFT JOIN comments ON posts.id = comments.post_id WHERE users.active = ? AND posts.published = ? AND comments.approved = ? OR users.created_at > ? AND posts.created_at > ? AND commen... 33 ms 16.9%
users/index 29 ms 14.9%
home#api_complex 195 ms 100.0%