Request Details

Route
/api_complex GET
Timestamp
Nov 09, 2026 6:03 AM
Duration
899.58 ms
Status
204
Response Size
43 KB
Error
No

Performance Breakdown

Database
1.3% (5 queries)
View Rendering
2.1%
Application Logic
96.6%
Other Operations
0.0%
Total Operations
15
Slowest Operation
899.58 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 1396.9ms 2793.7ms 4190.6ms 5587.5ms

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
layouts/application 38 ms 4.2%
home#api_complex 900 ms 100.0%
SELECT * FROM comments WHERE post_id = ? ORDER BY created_at DESC LIMIT ? 8 ms 0.9%
UPDATE posts SET view_count = view_count + ? WHERE published = ? 14 ms 1.6%
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ? 15 ms 1.7%
home#api_complex 900 ms 100.0%
layouts/application 34 ms 3.8%
home#api_complex 900 ms 100.0%
home/index 34 ms 3.8%
SELECT * FROM posts WHERE created_at > ? 26 ms 2.9%
home#api_complex 900 ms 100.0%
INSERT INTO posts (user_id, title, content, published, created_at, updated_at) VALUES (?, ?, ?, ?, ?, ?) 10 ms 1.1%
home#api_complex 900 ms 100.0%
home#api_complex 900 ms 100.0%
users/index 11 ms 1.2%