Operation 259136
SELECT * FROM posts WHERE title LIKE ? AND content LIKE ? AND LOWER(title) LIKE ? AND UPPER(content) LIKE ?
- Operation Type
sql
- Duration
- 13.0 ms
- Request Impact
- 8.2% of total request time
- Occurred At
- Sep 14, 2026 6:01 AM
- SQL Analysis
- Normal query (<100 ms)
- Performance Comparison
-
Average: 18.5ms
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
-
Use includes() to eager load associations - Eliminate N+1 queries and reduce database loadUse joins() when you only need to filter, not access associated data - Eliminate N+1 queries and reduce database loadUse preload() when you don't need to query on associations - Eliminate N+1 queries and reduce database loadAdd composite index: add_index :posts, ["title", "content"] - Efficient multi-column filteringSpecify only needed columns instead of SELECT * - Reduced memory usage and faster data transferIndex Optimization - Review indexes on the 'posts' table. Consider composite indexes for WHERE clauses.