Request Details

Route
/api_complex GET
Timestamp
Sep 19, 2026 2:27 PM
Duration
112.02 ms
Status
200
Response Size
89 KB
Error
No

Performance Breakdown

Database
9.8% (6 queries)
View Rendering
24.8%
Application Logic
65.4%
Other Operations
0.0%
Total Operations
25
Slowest Operation
112.02 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 299.5ms 599.1ms 898.6ms 1198.1ms

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 112 ms 100.0%
SELECT * FROM users WHERE id = ? 21 ms 18.7%
users/index 39 ms 34.8%
home#api_complex 112 ms 100.0%
layouts/application 38 ms 33.9%
INSERT INTO posts (user_id, title, content, published, created_at, updated_at) VALUES (?, ?, ?, ?, ?, ?) 8 ms 7.1%
home/index 26 ms 23.2%
home#api_complex 112 ms 100.0%
home#api_complex 112 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 > ? 7 ms 6.2%
posts/show 22 ms 19.6%
home#api_complex 112 ms 100.0%
home/index 24 ms 21.4%
users/index 16 ms 14.3%
SELECT name FROM users 27 ms 24.1%
layouts/application 31 ms 27.7%
users/index 8 ms 7.1%
posts/show 33 ms 29.5%
posts/show 7 ms 6.2%
home#api_complex 112 ms 100.0%
home#api_complex 112 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 25.0%
layouts/application 31 ms 27.7%
SELECT posts.* FROM posts WHERE title LIKE ? OR content LIKE ? 26 ms 23.2%
layouts/application 22 ms 19.6%