Operation 150654
SELECT posts.title, posts.content, users.name FROM posts JOIN users ON posts.user_id = users.id WHERE posts.published = ?
- Operation Type
sql
- Duration
- 13.0 ms
- Request Impact
- 8.2% of total request time
- Occurred At
- Sep 18, 2026 11:39 PM
- SQL Analysis
- Normal query (<100 ms)
- Performance Comparison
-
Average: 17.9ms
95th Percentile: 34.0ms
Based on 1000 recent operations - Related Operations
-
5 similar operations in this request
Potential N+1 query pattern detected - Optimization Tips
-
Add single_column index: add_index :posts, :published - Fast lookups for published = value queriesAdd single_column index: add_index :posts, :user_id - Fast JOIN executionAdd covering index: add_index :posts, ["published", "posts.title", "posts.content", "users.name"], name: 'covering_idx_posts_published' - Index-only scan without table accessIndex Optimization - Review indexes on the 'posts' table. Consider composite indexes for WHERE clauses.