Request Details

Route
/api_complex GET
Timestamp
Sep 12, 2026 6:25 PM
Duration
182.48 ms
Status
200
Response Size
55 KB
Error
No

Performance Breakdown

Database
4.6% (4 queries)
View Rendering
25.5%
Application Logic
69.9%
Other Operations
0.0%
Total Operations
19
Slowest Operation
182.48 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 261.0ms 522.0ms 782.9ms 1043.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
home#api_complex 182 ms 100.0%
posts/show 32 ms 17.5%
users/index 29 ms 15.9%
users/index 14 ms 7.7%
DELETE FROM posts WHERE id = ? 9 ms 4.9%
layouts/application 29 ms 15.9%
home#api_complex 182 ms 100.0%
layouts/application 8 ms 4.4%
SELECT users.*, COUNT(DISTINCT posts.id) as post_count, COUNT(DISTINCT comments.id) as comment_count, SUM(posts.view_count) as total_views, AVG(posts.view_count) as avg_views, MIN(posts.created_at) as first_post, MAX(posts.created_at) as latest_post FR... 8 ms 4.4%
home/index 10 ms 5.5%
home#api_complex 182 ms 100.0%
posts/show 13 ms 7.1%
home/index 28 ms 15.3%
SELECT posts.title, posts.content, users.name FROM posts JOIN users ON posts.user_id = users.id WHERE posts.published = ? 19 ms 10.4%
layouts/application 38 ms 20.8%
home/index 27 ms 14.8%
layouts/application 38 ms 20.8%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 12 ms 6.6%
home#api_complex 182 ms 100.0%