Request Details

Route
/api_complex GET
Timestamp
Sep 20, 2026 8:39 PM
Duration
127.0 ms
Status
204
Response Size
70 KB
Error
No

Performance Breakdown

Database
3.5% (3 queries)
View Rendering
13.5%
Application Logic
83.0%
Other Operations
0.0%
Total Operations
17
Slowest Operation
127.0 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 267.7ms 535.5ms 803.2ms 1071.0ms

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
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... 15 ms 11.8%
home#api_complex 127 ms 100.0%
home/index 7 ms 5.5%
users/index 35 ms 27.6%
users/index 9 ms 7.1%
users/index 22 ms 17.3%
users/index 12 ms 9.4%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 12 ms 9.4%
home#api_complex 127 ms 100.0%
layouts/application 37 ms 29.1%
home#api_complex 127 ms 100.0%
home#api_complex 127 ms 100.0%
home#api_complex 127 ms 100.0%
home/index 23 ms 18.1%
home#api_complex 127 ms 100.0%
SELECT users.*, posts.*, comments.*, COUNT(DISTINCT posts.id) as post_count, COUNT(DISTINCT comments.id) as comment_count, AVG(posts.view_count) as avg_views, MAX(comments.created_at) as latest_comment FROM users LEFT JOIN posts ON users.id = posts.use... 10 ms 7.9%
home#api_complex 127 ms 100.0%