dbsenpai

db-primary.example-shop.internal:5432  |  shop_production  |  2026-09-11 01:55:08
6HASHES
6RESOLVED
600msAVG EXEC
All Columns
count
48210
average
412.18
total
19871197.80
rows_returned
4200
min_ms
123.65
max_ms
2514.30
stddev_ms
329.74
cache_hit_pct
61.20
blocks_read
1900000
temp_blocks_written
0
role_name
app_rw
Query with Placeholders
SELECT * FROM orders WHERE customer_id = $1 AND status = $2 ORDER BY created_at DESC
Placeholder Values (0)
#Value
No placeholders
Full Resolved Query✎ editable
Query Execution Result(EXPLAIN ANALYZE JSON — from --run_queries)
📊 Table Intelligence(1 table(s) — stats, indexes, dead tuples, vacuum/analyze history)
📌 orders2 index(es)
Dead Tuples %
11.8
Dead Tuple Size
?
Live Tuples
4200000
Dead Tuples
560000
Total Size
3.1 GB
Table Size
?
Index Size
?
Mods Since Analyze
2100000
Seq Scans
58010
Last Analyze
?
Last Autoanalyze
9 days ago
Last Vacuum
?
Last Autovacuum
2 days ago
Indexes
Index NameSizeScansTuples ReadDefinition
PK orders_pkey120 MB910000CREATE INDEX orders_pkey ON public.orders USING btree (id)
orders_legacy_ref_idx120 MB0CREATE INDEX orders_legacy_ref_idx ON public.orders USING btree (legacy_ref)
🔧 Engineer Workstation
Status
① Fetched — Notes
Remarks / Observations
Suggestions / Actions Taken
Observed Exec Time
before analysis (ms)
Actual execution time you observed when running the query in the terminal before any tuning.
All Columns
count
9800
average
1340.52
total
13137096.00
rows_returned
50
min_ms
402.16
max_ms
8177.17
stddev_ms
1072.42
cache_hit_pct
38.40
blocks_read
5100000
temp_blocks_written
4200
role_name
app_rw
Query with Placeholders
SELECT o.id, o.total_cents, c.email FROM orders o JOIN customers c ON c.id = o.customer_id WHERE o.created_at > $1 ORDER BY o.created_at OFFSET $2 LIMIT 50
Placeholder Values (0)
#Value
No placeholders
Full Resolved Query✎ editable
Query Execution Result(EXPLAIN ANALYZE JSON — from --run_queries)
📊 Table Intelligence(2 table(s) — stats, indexes, dead tuples, vacuum/analyze history)
📌 customers2 index(es)
Dead Tuples %
0.9
Dead Tuple Size
?
Live Tuples
1100000
Dead Tuples
9800
Total Size
410 MB
Table Size
?
Index Size
?
Mods Since Analyze
40000
Seq Scans
9800
Last Analyze
?
Last Autoanalyze
9 days ago
Last Vacuum
?
Last Autovacuum
2 days ago
Indexes
Index NameSizeScansTuples ReadDefinition
PK customers_pkey120 MB2400000CREATE INDEX customers_pkey ON public.customers USING btree (id)
customers_email_key120 MB410000CREATE INDEX customers_email_key ON public.customers USING btree (email)
📌 orders2 index(es)
Dead Tuples %
11.8
Dead Tuple Size
?
Live Tuples
4200000
Dead Tuples
560000
Total Size
3.1 GB
Table Size
?
Index Size
?
Mods Since Analyze
2100000
Seq Scans
58010
Last Analyze
?
Last Autoanalyze
9 days ago
Last Vacuum
?
Last Autovacuum
2 days ago
Indexes
Index NameSizeScansTuples ReadDefinition
PK orders_pkey120 MB910000CREATE INDEX orders_pkey ON public.orders USING btree (id)
orders_legacy_ref_idx120 MB0CREATE INDEX orders_legacy_ref_idx ON public.orders USING btree (legacy_ref)
🔧 Engineer Workstation
Status
① Fetched — Notes
Remarks / Observations
Suggestions / Actions Taken
Observed Exec Time
before analysis (ms)
Actual execution time you observed when running the query in the terminal before any tuning.
All Columns
count
3120
average
890.07
total
2777018.40
rows_returned
24
min_ms
267.02
max_ms
5429.43
stddev_ms
712.06
cache_hit_pct
44.90
blocks_read
1400000
temp_blocks_written
0
role_name
app_ro
Query with Placeholders
SELECT p.id, p.name, p.price_cents FROM products p WHERE lower(p.name) LIKE $1
Placeholder Values (0)
#Value
No placeholders
Full Resolved Query✎ editable
Query Execution Result(EXPLAIN ANALYZE JSON — from --run_queries)
📊 Table Intelligence(1 table(s) — stats, indexes, dead tuples, vacuum/analyze history)
📌 products1 index(es)
Dead Tuples %
0.7
Dead Tuple Size
?
Live Tuples
180000
Dead Tuples
1200
Total Size
96 MB
Table Size
?
Index Size
?
Mods Since Analyze
800
Seq Scans
3120
Last Analyze
?
Last Autoanalyze
9 days ago
Last Vacuum
?
Last Autovacuum
2 days ago
Indexes
Index NameSizeScansTuples ReadDefinition
PK products_pkey120 MB51000CREATE INDEX products_pkey ON public.products USING btree (id)
🔧 Engineer Workstation
Status
① Fetched — Notes
Remarks / Observations
Suggestions / Actions Taken
Observed Exec Time
before analysis (ms)
Actual execution time you observed when running the query in the terminal before any tuning.
All Columns
count
5400
average
640.33
total
3457782.00
rows_returned
180
min_ms
192.10
max_ms
3906.01
stddev_ms
512.26
cache_hit_pct
72.50
blocks_read
880000
temp_blocks_written
0
role_name
billing
Query with Placeholders
SELECT * FROM invoices WHERE customer_id IN ($1, $2, $3, $4, $5, $6, $7, $8) AND paid = false
Placeholder Values (0)
#Value
No placeholders
Full Resolved Query✎ editable
Query Execution Result(EXPLAIN ANALYZE JSON — from --run_queries)
📊 Table Intelligence(1 table(s) — stats, indexes, dead tuples, vacuum/analyze history)
📌 invoices2 index(es)
Dead Tuples %
3.1
Dead Tuple Size
?
Live Tuples
3800000
Dead Tuples
120000
Total Size
2.2 GB
Table Size
?
Index Size
?
Mods Since Analyze
300000
Seq Scans
5400
Last Analyze
?
Last Autoanalyze
9 days ago
Last Vacuum
?
Last Autovacuum
2 days ago
Indexes
Index NameSizeScansTuples ReadDefinition
PK invoices_pkey120 MB88000CREATE INDEX invoices_pkey ON public.invoices USING btree (id)
invoices_number_idx120 MB0CREATE INDEX invoices_number_idx ON public.invoices USING btree (number)
🔧 Engineer Workstation
Status
① Fetched — Notes
Remarks / Observations
Suggestions / Actions Taken
Observed Exec Time
before analysis (ms)
Actual execution time you observed when running the query in the terminal before any tuning.
All Columns
count
120000
average
220.41
total
26449200.00
rows_returned
1
min_ms
66.12
max_ms
1344.50
stddev_ms
176.33
cache_hit_pct
91.30
blocks_read
310000
temp_blocks_written
0
role_name
app_ro
Query with Placeholders
SELECT count(*) FROM events WHERE account_id = $1 AND occurred_at BETWEEN $2 AND $3
Placeholder Values (0)
#Value
No placeholders
Full Resolved Query✎ editable
Query Execution Result(EXPLAIN ANALYZE JSON — from --run_queries)
📊 Table Intelligence(1 table(s) — stats, indexes, dead tuples, vacuum/analyze history)
📌 events2 index(es)
Dead Tuples %
3.5
Dead Tuple Size
?
Live Tuples
52000000
Dead Tuples
1900000
Total Size
41 GB
Table Size
?
Index Size
?
Mods Since Analyze
9000000
Seq Scans
12
Last Analyze
?
Last Autoanalyze
9 days ago
Last Vacuum
?
Last Autovacuum
2 days ago
Indexes
Index NameSizeScansTuples ReadDefinition
PK events_pkey120 MB100CREATE INDEX events_pkey ON public.events USING btree (id)
events_account_id_idx120 MB6100000CREATE INDEX events_account_id_idx ON public.events USING btree (account_id)
🔧 Engineer Workstation
Status
① Fetched — Notes
Remarks / Observations
Suggestions / Actions Taken
Observed Exec Time
before analysis (ms)
Actual execution time you observed when running the query in the terminal before any tuning.
All Columns
count
250000
average
95.80
total
23950000.00
rows_returned
1
min_ms
28.74
max_ms
584.38
stddev_ms
76.64
cache_hit_pct
88.00
blocks_read
210000
temp_blocks_written
0
role_name
app_rw
Query with Placeholders
UPDATE carts SET updated_at = now() WHERE session_id = $1
Placeholder Values (0)
#Value
No placeholders
Full Resolved Query✎ editable
Query Execution Result(EXPLAIN ANALYZE JSON — from --run_queries)
📊 Table Intelligence(1 table(s) — stats, indexes, dead tuples, vacuum/analyze history)
📌 carts1 index(es)
Dead Tuples %
31.1
Dead Tuple Size
?
Live Tuples
2300000
Dead Tuples
1040000
Total Size
1.9 GB
Table Size
?
Index Size
?
Mods Since Analyze
1040000
Seq Scans
250000
Last Analyze
?
Last Autoanalyze
9 days ago
Last Vacuum
?
Last Autovacuum
2 days ago
Indexes
Index NameSizeScansTuples ReadDefinition
PK carts_pkey120 MB1200CREATE INDEX carts_pkey ON public.carts USING btree (id)
🔧 Engineer Workstation
Status
① Fetched — Notes
Remarks / Observations
Suggestions / Actions Taken
Observed Exec Time
before analysis (ms)
Actual execution time you observed when running the query in the terminal before any tuning.
💾 Save Changes stores annotations in memory.  ⬇ Download Updated Report saves all changes to a new file.  📄 Export Final Report generates a customer-facing summary.  📋 SAM Report generates a compact table for SAM review.
Toggle sections: