P95 Query Time
35 ms
Compared to previous 7 days
Query Responses
Click marker to copy SHA
| Time Period ▼ | Executions | Avg Duration | Min Duration | Max Duration |
|---|---|---|---|---|
| Sep 23, 2026 | 2 | 24.0 ms | 23.0 ms | 25.0 ms |
| Sep 22, 2026 | 6 | 6.33 ms | 1.0 ms | 16.0 ms |
| Sep 21, 2026 | 10 | 16.5 ms | 2.0 ms | 34.0 ms |
| Sep 20, 2026 | 12 | 17.92 ms | 1.0 ms | 34.0 ms |
| Sep 19, 2026 | 12 | 17.0 ms | 1.0 ms | 35.0 ms |
| Sep 18, 2026 | 13 | 18.46 ms | 2.0 ms | 35.0 ms |
| Sep 17, 2026 | 12 | 20.25 ms | 2.0 ms | 35.0 ms |
| Sep 16, 2026 | 9 | 11.22 ms | 1.0 ms | 21.0 ms |
| Sep 15, 2026 | 20 | 19.9 ms | 3.0 ms | 41.0 ms |
| Sep 14, 2026 | 19 | 24.0 ms | 2.0 ms | 50.0 ms |
Total of 15 record(s).
Page 1 of 2
Normalized Query
SELECT posts.* FROM posts WHERE title LIKE ? OR content LIKE ?
Diagnostics
Query Characteristics
- Query Type
- SELECT
- Tables
- 1
- Joins
- 0
- Complexity Score
- 4
- Has LIMIT
- No
- Has ORDER BY
- No
- Has GROUP BY
- No
- Has Subqueries
- No
Optimization Suggestions
-
Add composite index: add_index :posts, ["title", "content"]
— Efficient multi-column filtering
add_index :posts, ["title", "content"]
Execution Plan
2 | 0 | 216 | SCAN posts
Query Locations
| Location | P95 Duration (ms) | P95 Row Count | Count |
|---|---|---|---|
app/controllers/search_controller.rb:12 |
34.0 | — | 167 |
app/mailers/user_mailer.rb:55 |
41.0 | — | 1 |
app/jobs/notification_job.rb:20 |
39.0 | — | 1 |
app/jobs/cache_warming_job.rb:75 |
39.0 | — | 1 |
app/mailers/user_mailer.rb:90 |
46.0 | — | 1 |
app/jobs/report_generator_job.rb:60 |
45.0 | — | 1 |
app/jobs/report_generator_job.rb:25 |
50.0 | — | 1 |
app/jobs/cache_warming_job.rb:14 |
2.0 | — | 1 |
app/mailers/user_mailer.rb:89 |
34.0 | — | 1 |
app/jobs/data_export_job.rb:118 |
10.0 | — | 1 |
app/jobs/cache_warming_job.rb:79 |
19.0 | — | 1 |
app/jobs/import_job.rb:11 |
5.0 | — | 1 |
app/jobs/analytics_job.rb:115 |
40.0 | — | 1 |
app/jobs/analytics_job.rb:96 |
49.0 | — | 1 |
app/mailers/user_mailer.rb:87 |
49.0 | — | 1 |
app/jobs/webhook_delivery_job.rb:96 |
2.0 | — | 1 |
app/jobs/cache_warming_job.rb:77 |
11.0 | — | 1 |
app/jobs/notification_job.rb:37 |
46.0 | — | 1 |
app/jobs/cache_warming_job.rb:69 |
27.0 | — | 1 |
app/jobs/cache_warming_job.rb:60 |
37.0 | — | 1 |
Raw Data
{
"query": {
"id": 58,
"normalized_sql": "SELECT posts.* FROM posts WHERE title LIKE ? OR content LIKE ?",
"analyzed_at": "2026-09-23 05:02:24 UTC"
},
"performance": {
"total_executions": 186,
"p95_duration_ms": "39.0",
"avg_duration_ms": 18.3065,
"p95_row_count": null,
"avg_row_count": null
},
"characteristics": {
"query_type": "SELECT",
"table_count": 1,
"join_count": 0,
"where_clause_complexity": 2,
"has_subqueries": false,
"has_limit": false,
"has_order_by": false,
"has_group_by": false,
"has_having": false,
"has_distinct": false,
"has_aggregations": false,
"estimated_complexity": 4
},
"call_locations": [
{
"location": "app/controllers/search_controller.rb:12",
"count": 167,
"p95_duration_ms": "34.0",
"p95_row_count": null
},
{
"location": "app/mailers/user_mailer.rb:55",
"count": 1,
"p95_duration_ms": "41.0",
"p95_row_count": null
},
{
"location": "app/jobs/notification_job.rb:20",
"count": 1,
"p95_duration_ms": "39.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:75",
"count": 1,
"p95_duration_ms": "39.0",
"p95_row_count": null
},
{
"location": "app/mailers/user_mailer.rb:90",
"count": 1,
"p95_duration_ms": "46.0",
"p95_row_count": null
},
{
"location": "app/jobs/report_generator_job.rb:60",
"count": 1,
"p95_duration_ms": "45.0",
"p95_row_count": null
},
{
"location": "app/jobs/report_generator_job.rb:25",
"count": 1,
"p95_duration_ms": "50.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:14",
"count": 1,
"p95_duration_ms": "2.0",
"p95_row_count": null
},
{
"location": "app/mailers/user_mailer.rb:89",
"count": 1,
"p95_duration_ms": "34.0",
"p95_row_count": null
},
{
"location": "app/jobs/data_export_job.rb:118",
"count": 1,
"p95_duration_ms": "10.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:79",
"count": 1,
"p95_duration_ms": "19.0",
"p95_row_count": null
},
{
"location": "app/jobs/import_job.rb:11",
"count": 1,
"p95_duration_ms": "5.0",
"p95_row_count": null
},
{
"location": "app/jobs/analytics_job.rb:115",
"count": 1,
"p95_duration_ms": "40.0",
"p95_row_count": null
},
{
"location": "app/jobs/analytics_job.rb:96",
"count": 1,
"p95_duration_ms": "49.0",
"p95_row_count": null
},
{
"location": "app/mailers/user_mailer.rb:87",
"count": 1,
"p95_duration_ms": "49.0",
"p95_row_count": null
},
{
"location": "app/jobs/webhook_delivery_job.rb:96",
"count": 1,
"p95_duration_ms": "2.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:77",
"count": 1,
"p95_duration_ms": "11.0",
"p95_row_count": null
},
{
"location": "app/jobs/notification_job.rb:37",
"count": 1,
"p95_duration_ms": "46.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:69",
"count": 1,
"p95_duration_ms": "27.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:60",
"count": 1,
"p95_duration_ms": "37.0",
"p95_row_count": null
}
],
"n_plus_one": {
"detected": false
},
"index_recommendations": [
"add_index :posts, [\"title\", \"content\"]"
],
"issues": [],
"explain_plan": "2 | 0 | 216 | SCAN posts"
}