Request Details

Route
/api_complex GET
Timestamp
Sep 14, 2026 6:59 AM
Duration
227.87 ms
Status
200
Response Size
15 KB
Error
No

Performance Breakdown

Database
8.4% (5 queries)
View Rendering
7.4%
Application Logic
84.2%
Other Operations
0.0%
Total Operations
12
Slowest Operation
227.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 270.6ms 541.2ms 811.9ms 1082.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
posts/show 21 ms 9.2%
home#api_complex 228 ms 100.0%
SELECT DISTINCT users.*, posts.*, comments.* FROM users, posts, comments WHERE users.id = posts.user_id AND posts.id = comments.post_id AND users.created_at > ? AND posts.created_at > ? AND comments.created_at > ? 28 ms 12.3%
home#api_complex 228 ms 100.0%
posts/show 26 ms 11.4%
home#api_complex 228 ms 100.0%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 1 ms 0.4%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 26 ms 11.4%
layouts/application 33 ms 14.5%
SELECT name FROM users 2 ms 0.9%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 34 ms 14.9%
home#api_complex 228 ms 100.0%