Request Details

Route
/api_complex GET
Timestamp
Nov 09, 2026 7:06 PM
Duration
79.63 ms
Status
201
Response Size
21 KB
Error
No

Performance Breakdown

Database
16.1% (9 queries)
View Rendering
14.3%
Application Logic
69.6%
Other Operations
0.0%
Total Operations
23
Slowest Operation
79.63 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 257.4ms 514.8ms 772.2ms 1029.6ms

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 80 ms 100.0%
home#api_complex 80 ms 100.0%
layouts/application 35 ms 44.0%
posts/show 23 ms 28.9%
home#api_complex 80 ms 100.0%
home#api_complex 80 ms 100.0%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 22 ms 27.6%
SELECT * FROM posts WHERE created_at > ? 33 ms 41.4%
users/index 16 ms 20.1%
posts/show 35 ms 44.0%
SELECT users.* FROM users LEFT JOIN posts ON users.id = posts.user_id LEFT JOIN comments ON posts.id = comments.post_id WHERE users.active = ? AND posts.published = ? AND comments.approved = ? OR users.created_at > ? AND posts.created_at > ? AND commen... 8 ms 10.0%
home#api_complex 80 ms 100.0%
home#api_complex 80 ms 100.0%
SELECT users.* FROM users LEFT JOIN posts ON users.id = posts.user_id LEFT JOIN comments ON posts.id = comments.post_id WHERE users.active = ? AND posts.published = ? AND comments.approved = ? OR users.created_at > ? AND posts.created_at > ? AND commen... 32 ms 40.2%
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 > ? 20 ms 25.1%
INSERT INTO posts (user_id, title, content, published, created_at, updated_at) VALUES (?, ?, ?, ?, ?, ?) 17 ms 21.3%
users/index 38 ms 47.7%
home#api_complex 80 ms 100.0%
SELECT users.* FROM users LEFT JOIN posts ON users.id = posts.user_id LEFT JOIN comments ON posts.id = comments.post_id WHERE users.active = ? AND posts.published = ? AND comments.approved = ? OR users.created_at > ? AND posts.created_at > ? AND commen... 12 ms 15.1%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 7 ms 8.8%
home#api_complex 80 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 > ? 15 ms 18.8%
home#api_complex 80 ms 100.0%