Skip to content

Commit cd8aed4

Browse files
loongsweatybridge
authored andcommitted
chore: add output examples for remaining
1 parent 7d344f8 commit cd8aed4

File tree

7 files changed

+30
-13
lines changed

7 files changed

+30
-13
lines changed

docs/supabase/inspect/cache-hit.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22

33
This command provides information on the efficiency of the buffer cache, for both index reads (`index hit rate`) as well as table reads (`table hit rate`). A low buffer cache hit ratio can be a sign that the Heroku Postgres plan is too small for the workload.
44

5+
TODO must mention what ratio is unhealthy
56

67
```
7-
name | ratio
8-
----------------+------------------------
9-
index hit rate | 0.99957765013541945832
10-
table hit rate | 1.00
8+
NAME │ RATIO
9+
─────────────────┼───────────
10+
index hit rate 0.996621
11+
table hit rate │ 0.999341
1112
```

docs/supabase/inspect/outliers.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ This command displays statements, obtained from `pg_stat_statements`, ordered by
44

55
Typically, an efficient query will have an appropriate ratio of calls to total execution time, with as little time spent on I/O as possible. Queries that have a high total execution time but low call count should be investigated to improve their performance. Queries that have a high proportion of execution time being spent on synchronous I/O should also be investigated.
66

7+
TODO check this table 👇
8+
79
```
810
911
QUERY │ EXECUTION TIME │ PROPORTION OF EXEC TIME │ NUMBER CALLS │ SYNC IO TIME

docs/supabase/inspect/seq-scans.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ This command displays the number of sequential scans recorded against all tables
99
emails │ 182435
1010
users │ 25063
1111
job_run_details │ 60
12-
schema_migrations │ 4
13-
staging_resource_notifications │ 2
1412
schema_migrations │ 0
1513
migrations │ 0
1614
```

docs/supabase/inspect/supabase-schema-check.md

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,14 @@
11
# table-sizes
2+
3+
This command displays the size of each table in the database. It is calculated by using the system administration function `pg_table_size()`, which includes the size of the main data fork, free space map, visibility map and TOAST data.
4+
5+
6+
```
7+
NAME │ SIZE
8+
───────────────────────────────────┼─────────────
9+
job_run_details │ 385 MB
10+
emails │ 584 kB
11+
job │ 40 kB
12+
sessions │ 0 bytes
13+
prod_resource_notifications_meta │ 0 bytes
14+
```
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
11
# total-index-size
2+
3+
This command displays the total size of all indexes on the database. It is calculated by taking the number of pages (reported in `relpages`) and multiplying it by the page size (8192 bytes).
4+
5+
```
6+
SIZE
7+
─────────
8+
12 MB
9+
```
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
## total-table-sizes
22

3-
This command displays the total size of each table in the database, in MB. It is calculated by using the system administration function `pg_total_relation_size()`, which includes table size, total index size and TOAST data.
3+
This command displays the total size of each table in the database. It is calculated by using the system administration function `pg_total_relation_size()`, which includes table size, total index size and TOAST data.
44

55
```
66
NAME │ SIZE
77
───────────────────────────────────┼─────────────
88
job_run_details │ 395 MB
9-
prod_resource_notifications │ 299 MB
10-
staging_resource_notifications │ 47 MB
11-
infra_alerts_to_delete │ 18 MB
129
slack_msgs │ 648 kB
13-
dunning_emails │ 640 kB
14-
project_emails │ 408 kB
10+
emails │ 640 kB
1511
```

0 commit comments

Comments
 (0)