P95 Query Time
36 ms
Compared to previous 7 days
Query Responses
Click marker to copy SHA
| Time Period ▼ | Executions | Avg Duration | Min Duration | Max Duration |
|---|---|---|---|---|
| Nov 12, 2026 | 16 | 14.81 ms | 4.0 ms | 28.0 ms |
| Nov 11, 2026 | 17 | 15.18 ms | 1.0 ms | 44.0 ms |
| Nov 10, 2026 | 13 | 24.08 ms | 5.0 ms | 48.0 ms |
| Nov 9, 2026 | 26 | 16.46 ms | 1.0 ms | 46.0 ms |
| Nov 8, 2026 | 8 | 20.88 ms | 5.0 ms | 43.0 ms |
Total of 15 record(s).
Page 2 of 2
Normalized Query
DELETE FROM posts WHERE id = ?
Diagnostics
Query Characteristics
- Query Type
- DELETE
- Tables
- 1
- Joins
- 0
- Complexity Score
- 3
- Has LIMIT
- No
- Has ORDER BY
- No
- Has GROUP BY
- No
- Has Subqueries
- No
Optimization Suggestions
-
Add single_column index: add_index :posts, :id
— Fast lookups for id = value queries
add_index :posts, :id
Query Locations
| Location | P95 Duration (ms) | P95 Row Count | Count |
|---|---|---|---|
app/models/post.rb:42 |
33.0 | — | 157 |
app/jobs/notification_job.rb:37 |
25.0 | — | 1 |
app/jobs/webhook_delivery_job.rb:21 |
41.0 | — | 1 |
app/jobs/report_generator_job.rb:44 |
50.0 | — | 1 |
app/jobs/notification_job.rb:105 |
11.0 | — | 1 |
app/jobs/cache_warming_job.rb:68 |
39.0 | — | 1 |
app/jobs/webhook_delivery_job.rb:61 |
43.0 | — | 1 |
app/jobs/data_export_job.rb:100 |
16.0 | — | 1 |
app/mailers/user_mailer.rb:91 |
43.0 | — | 1 |
app/mailers/user_mailer.rb:25 |
10.0 | — | 1 |
app/jobs/notification_job.rb:42 |
25.0 | — | 1 |
app/jobs/notification_job.rb:97 |
22.0 | — | 1 |
app/jobs/data_export_job.rb:92 |
22.0 | — | 1 |
app/jobs/import_job.rb:83 |
26.0 | — | 1 |
app/mailers/user_mailer.rb:14 |
44.0 | — | 1 |
app/jobs/cache_warming_job.rb:59 |
8.0 | — | 1 |
app/jobs/cleanup_job.rb:29 |
48.0 | — | 1 |
app/mailers/user_mailer.rb:99 |
34.0 | — | 1 |
app/jobs/cache_warming_job.rb:103 |
18.0 | — | 1 |
app/jobs/notification_job.rb:86 |
42.0 | — | 1 |
app/mailers/user_mailer.rb:118 |
41.0 | — | 1 |
app/jobs/image_processing_job.rb:98 |
46.0 | — | 1 |
app/jobs/notification_job.rb:38 |
25.0 | — | 1 |
app/jobs/image_processing_job.rb:76 |
20.0 | — | 1 |
app/mailers/user_mailer.rb:117 |
44.0 | — | 1 |
app/jobs/notification_job.rb:72 |
31.0 | — | 1 |
app/jobs/analytics_job.rb:105 |
40.0 | — | 1 |
app/mailers/user_mailer.rb:102 |
43.0 | — | 1 |
app/jobs/report_generator_job.rb:16 |
33.0 | — | 1 |
Raw Data
{
"query": {
"id": 7252,
"normalized_sql": "DELETE FROM posts WHERE id = ?",
"analyzed_at": "2026-11-22 15:02:25 UTC"
},
"performance": {
"total_executions": 185,
"p95_duration_ms": "41.0",
"avg_duration_ms": 18.7568,
"p95_row_count": null,
"avg_row_count": null
},
"characteristics": {
"query_type": "DELETE",
"table_count": 1,
"join_count": 0,
"where_clause_complexity": 1,
"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": 3
},
"call_locations": [
{
"location": "app/models/post.rb:42",
"count": 157,
"p95_duration_ms": "33.0",
"p95_row_count": null
},
{
"location": "app/jobs/notification_job.rb:37",
"count": 1,
"p95_duration_ms": "25.0",
"p95_row_count": null
},
{
"location": "app/jobs/webhook_delivery_job.rb:21",
"count": 1,
"p95_duration_ms": "41.0",
"p95_row_count": null
},
{
"location": "app/jobs/report_generator_job.rb:44",
"count": 1,
"p95_duration_ms": "50.0",
"p95_row_count": null
},
{
"location": "app/jobs/notification_job.rb:105",
"count": 1,
"p95_duration_ms": "11.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:68",
"count": 1,
"p95_duration_ms": "39.0",
"p95_row_count": null
},
{
"location": "app/jobs/webhook_delivery_job.rb:61",
"count": 1,
"p95_duration_ms": "43.0",
"p95_row_count": null
},
{
"location": "app/jobs/data_export_job.rb:100",
"count": 1,
"p95_duration_ms": "16.0",
"p95_row_count": null
},
{
"location": "app/mailers/user_mailer.rb:91",
"count": 1,
"p95_duration_ms": "43.0",
"p95_row_count": null
},
{
"location": "app/mailers/user_mailer.rb:25",
"count": 1,
"p95_duration_ms": "10.0",
"p95_row_count": null
},
{
"location": "app/jobs/notification_job.rb:42",
"count": 1,
"p95_duration_ms": "25.0",
"p95_row_count": null
},
{
"location": "app/jobs/notification_job.rb:97",
"count": 1,
"p95_duration_ms": "22.0",
"p95_row_count": null
},
{
"location": "app/jobs/data_export_job.rb:92",
"count": 1,
"p95_duration_ms": "22.0",
"p95_row_count": null
},
{
"location": "app/jobs/import_job.rb:83",
"count": 1,
"p95_duration_ms": "26.0",
"p95_row_count": null
},
{
"location": "app/mailers/user_mailer.rb:14",
"count": 1,
"p95_duration_ms": "44.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:59",
"count": 1,
"p95_duration_ms": "8.0",
"p95_row_count": null
},
{
"location": "app/jobs/cleanup_job.rb:29",
"count": 1,
"p95_duration_ms": "48.0",
"p95_row_count": null
},
{
"location": "app/mailers/user_mailer.rb:99",
"count": 1,
"p95_duration_ms": "34.0",
"p95_row_count": null
},
{
"location": "app/jobs/cache_warming_job.rb:103",
"count": 1,
"p95_duration_ms": "18.0",
"p95_row_count": null
},
{
"location": "app/jobs/notification_job.rb:86",
"count": 1,
"p95_duration_ms": "42.0",
"p95_row_count": null
},
{
"location": "app/mailers/user_mailer.rb:118",
"count": 1,
"p95_duration_ms": "41.0",
"p95_row_count": null
},
{
"location": "app/jobs/image_processing_job.rb:98",
"count": 1,
"p95_duration_ms": "46.0",
"p95_row_count": null
},
{
"location": "app/jobs/notification_job.rb:38",
"count": 1,
"p95_duration_ms": "25.0",
"p95_row_count": null
},
{
"location": "app/jobs/image_processing_job.rb:76",
"count": 1,
"p95_duration_ms": "20.0",
"p95_row_count": null
},
{
"location": "app/mailers/user_mailer.rb:117",
"count": 1,
"p95_duration_ms": "44.0",
"p95_row_count": null
},
{
"location": "app/jobs/notification_job.rb:72",
"count": 1,
"p95_duration_ms": "31.0",
"p95_row_count": null
},
{
"location": "app/jobs/analytics_job.rb:105",
"count": 1,
"p95_duration_ms": "40.0",
"p95_row_count": null
},
{
"location": "app/mailers/user_mailer.rb:102",
"count": 1,
"p95_duration_ms": "43.0",
"p95_row_count": null
},
{
"location": "app/jobs/report_generator_job.rb:16",
"count": 1,
"p95_duration_ms": "33.0",
"p95_row_count": null
}
],
"n_plus_one": {
"detected": false
},
"index_recommendations": [
"add_index :posts, :id"
],
"issues": []
}