Skip to content

Commit 863d59f

Browse files
committed
3: show seqscan %
1 parent 54bc71b commit 863d59f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sql/3_load_profiles.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ select
8787
n_tup_ins as "INSERTed",
8888
n_tup_del as "DELETEd",
8989
n_tup_upd as "UPDATEd",
90-
round(100 * upd_hot_ratio, 2) as "HOT-updated, %"
90+
round(100 * upd_hot_ratio, 2) as "HOT-updated, %",
91+
case when seq_tup_read + coalesce(idx_tup_fetch, 0) > 0 then round(100 * seq_tup_read::numeric / (seq_tup_read + coalesce(idx_tup_fetch, 0)), 2) else 0 end as "SeqScan, %"
9192
from data2
9293
order by ord, processed_tup_total desc;

0 commit comments

Comments
 (0)