Request Details

Route
/api_complex GET
Timestamp
Nov 11, 2026 9:59 AM
Duration
227.08 ms
Status
200
Response Size
72 KB
Error
No

Performance Breakdown

Database
10.4% (6 queries)
View Rendering
3.0%
Application Logic
86.6%
Other Operations
0.0%
Total Operations
12
Slowest Operation
227.08 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 262.3ms 524.7ms 787.0ms 1049.3ms

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 227 ms 100.0%
SELECT posts.title, posts.content, users.name FROM posts JOIN users ON posts.user_id = users.id WHERE posts.published = ? 8 ms 3.5%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 16 ms 7.0%
INSERT INTO posts (user_id, title, content, published, created_at, updated_at) VALUES (?, ?, ?, ?, ?, ?) 7 ms 3.1%
home#api_complex 227 ms 100.0%
home#api_complex 227 ms 100.0%
posts/show 27 ms 11.9%
DELETE FROM comments WHERE created_at < ? 34 ms 15.0%
home#api_complex 227 ms 100.0%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 33 ms 14.5%
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 > ? 11 ms 4.8%
posts/show 5 ms 2.2%