Request Details

Route
/api_complex GET
Timestamp
Sep 12, 2026 10:47 AM
Duration
117.42 ms
Status
200
Response Size
48 KB
Error
No

Performance Breakdown

Database
6.2% (3 queries)
View Rendering
13.9%
Application Logic
79.8%
Other Operations
0.0%
Total Operations
15
Slowest Operation
117.42 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 220.6ms 441.3ms 661.9ms 882.5ms

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
users/index 31 ms 26.4%
home#api_complex 117 ms 100.0%
home/index 19 ms 16.2%
home#api_complex 117 ms 100.0%
home#api_complex 117 ms 100.0%
home#api_complex 117 ms 100.0%
SELECT id, name, email FROM users WHERE id = ? 17 ms 14.5%
home#api_complex 117 ms 100.0%
users/index 32 ms 27.3%
layouts/application 17 ms 14.5%
users/index 10 ms 8.5%
home#api_complex 117 ms 100.0%
users/index 14 ms 11.9%
SELECT posts.title, posts.content, users.name FROM posts JOIN users ON posts.user_id = users.id WHERE posts.published = ? 20 ms 17.0%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 18 ms 15.3%