Request Details

Route
/api_complex GET
Timestamp
Nov 20, 2026 12:34 PM
Duration
162.25 ms
Status
204
Response Size
63 KB
Error
No

Performance Breakdown

Database
10.7% (8 queries)
View Rendering
5.1%
Application Logic
84.2%
Other Operations
0.0%
Total Operations
20
Slowest Operation
162.25 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 385.5ms 771.0ms 1156.5ms 1542.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
UPDATE posts SET view_count = view_count + ? WHERE published = ? 35 ms 21.6%
home#api_complex 162 ms 100.0%
SELECT * FROM users LEFT JOIN posts ON users.id = posts.user_id LEFT JOIN comments ON posts.id = comments.post_id LEFT JOIN tags ON posts.id = tags.post_id LEFT JOIN categories ON posts.category_id = categories.id WHERE users.active = ? AND posts.publi... 35 ms 21.6%
home#api_complex 162 ms 100.0%
INSERT INTO posts (user_id, title, content, published, created_at, updated_at) VALUES (?, ?, ?, ?, ?, ?) 33 ms 20.3%
home#api_complex 162 ms 100.0%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 8 ms 4.9%
home#api_complex 162 ms 100.0%
home/index 12 ms 7.4%
home#api_complex 162 ms 100.0%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 19 ms 11.7%
home#api_complex 162 ms 100.0%
home/index 34 ms 21.0%
home/index 6 ms 3.7%
SELECT * FROM posts WHERE created_at > ? 1 ms 0.6%
users/index 27 ms 16.6%
home#api_complex 162 ms 100.0%
SELECT * FROM posts WHERE user_id = ? ORDER BY created_at DESC LIMIT ? 15 ms 9.2%
home#api_complex 162 ms 100.0%
SELECT * FROM users WHERE id = ? 19 ms 11.7%