Request Details

Route
/api_complex GET
Timestamp
Sep 16, 2026 8:47 AM
Duration
154.45 ms
Status
200
Response Size
45 KB
Error
No

Performance Breakdown

Database
17.2% (6 queries)
View Rendering
24.9%
Application Logic
57.9%
Other Operations
0.0%
Total Operations
12
Slowest Operation
154.45 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 133.5ms 267.0ms 400.4ms 533.9ms

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
layouts/application 27 ms 17.5%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 1 ms 0.6%
posts/show 40 ms 25.9%
home#api_complex 154 ms 100.0%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 23 ms 14.9%
home/index 32 ms 20.7%
SELECT * FROM posts WHERE created_at > ? 1 ms 0.6%
posts/show 34 ms 22.0%
SELECT COUNT(*) FROM comments WHERE post_id = ? 27 ms 17.5%
SELECT * FROM users WHERE id = ? 15 ms 9.7%
SELECT * FROM users WHERE id = ? 25 ms 16.2%
home#api_complex 154 ms 100.0%