Request Details

Route
/api_complex GET
Timestamp
Sep 23, 2026 5:19 AM
Duration
220.27 ms
Status
201
Response Size
37 KB
Error
No

Performance Breakdown

Database
8.4% (6 queries)
View Rendering
8.1%
Application Logic
83.5%
Other Operations
0.0%
Total Operations
16
Slowest Operation
220.27 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 329.8ms 659.7ms 989.5ms 1319.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
posts/show 8 ms 3.6%
SELECT * FROM posts WHERE created_at > ? 16 ms 7.3%
home#api_complex 220 ms 100.0%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 23 ms 10.4%
users/index 39 ms 17.7%
home#api_complex 220 ms 100.0%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 8 ms 3.6%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 27 ms 12.3%
home#api_complex 220 ms 100.0%
UPDATE posts SET view_count = view_count + ? WHERE published = ? 34 ms 15.4%
home#api_complex 220 ms 100.0%
home/index 30 ms 13.6%
layouts/application 23 ms 10.4%
home/index 7 ms 3.2%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 3 ms 1.4%
home#api_complex 220 ms 100.0%