Skip to content

Commit d753df6

Browse files
v0y4g3rnicecui
andauthored
docs: add sst_num to region_statistics (#1961)
Co-authored-by: Yiran <[email protected]>
1 parent 2f92f5b commit d753df6

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

docs/reference/sql/information-schema/region-statistics.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ The output is as follows:
2929
| disk_size | UInt64 | | YES | | FIELD |
3030
| memtable_size | UInt64 | | YES | | FIELD |
3131
| manifest_size | UInt64 | | YES | | FIELD |
32+
| sst_num | UInt64 | | YES | | FIELD |
3233
| sst_size | UInt64 | | YES | | FIELD |
3334
| index_size | UInt64 | | YES | | FIELD |
3435
| engine | String | | YES | | FIELD |
@@ -45,6 +46,7 @@ Fields in the `REGION_STATISTICS` table are described as follows:
4546
- `disk_size`: The total size of data files in the region, including data, index and metadata etc.
4647
- `memtable_size`: The region's total size of memtables.
4748
- `manifest_size`: The region's total size of manifest files.
49+
- `sst_num`: The region's total number of SST files.
4850
- `sst_size`: The region's total size of SST files.
4951
- `index_size`: The region's total size of index files.
5052
- `engine`: The engine type of the region, `mito` or `metric`.
@@ -61,9 +63,9 @@ WHERE t.table_name = 'system_metrics';
6163

6264
Output:
6365
```sql
64-
+---------------+----------+---------------+-------------+-----------+---------------+---------------+----------+------------+--------+-------------+
65-
| region_id | table_id | region_number | region_rows | disk_size | memtable_size | manifest_size | sst_size | index_size | engine | region_role |
66-
+---------------+----------+---------------+-------------+-----------+---------------+---------------+----------+------------+--------+-------------+
67-
| 4398046511104 | 1024 | 0 | 8 | 4922 | 0 | 1338 | 3249 | 335 | mito | Leader |
68-
+---------------+----------+---------------+-------------+-----------+---------------+---------------+----------+------------+--------+-------------+
66+
+---------------+----------+---------------+-------------+-----------+---------------+---------------+----------+---------+------------+--------+-------------+
67+
| region_id | table_id | region_number | region_rows | disk_size | memtable_size | manifest_size | sst_size | sst_num | index_size | engine | region_role |
68+
+---------------+----------+---------------+-------------+-----------+---------------+---------------+----------+---------+------------+--------+-------------+
69+
| 4398046511104 | 1024 | 0 | 8 | 4922 | 0 | 1338 | 3249 | 1 | 335 | mito | Leader |
70+
+---------------+----------+---------------+-------------+-----------+---------------+---------------+----------+---------+------------+--------+-------------+
6971
```

i18n/zh/docusaurus-plugin-content-docs/current/reference/sql/information-schema/region-statistics.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ DESC REGION_STATISTICS;
2929
| disk_size | UInt64 | | YES | | FIELD |
3030
| memtable_size | UInt64 | | YES | | FIELD |
3131
| manifest_size | UInt64 | | YES | | FIELD |
32+
| sst_num | UInt64 | | YES | | FIELD |
3233
| sst_size | UInt64 | | YES | | FIELD |
3334
| index_size | UInt64 | | YES | | FIELD |
3435
| engine | String | | YES | | FIELD |
@@ -45,6 +46,7 @@ DESC REGION_STATISTICS;
4546
- `disk_size`: Region 中数据文件的总大小,包括数据、索引及元信息等。
4647
- `memtable_size`: Region 中内存 memtables 的总大小。
4748
- `manifest_size`: Region 中元信息 manifest 文件的总大小。
49+
- `sst_num`: Region 中 SST 文件的总数量。
4850
- `sst_size`: Region 中 SST 文件的总大小。
4951
- `index_size`: Region 中索引文件的总大小。
5052
- `engine`: Region 的引擎类型,可以是 `mito``metric`
@@ -59,9 +61,9 @@ WHERE t.table_name = 'system_metrics';
5961

6062
输出:
6163
```sql
62-
+---------------+----------+---------------+-------------+-----------+---------------+---------------+----------+------------+--------+-------------+
63-
| region_id | table_id | region_number | region_rows | disk_size | memtable_size | manifest_size | sst_size | index_size | engine | region_role |
64-
+---------------+----------+---------------+-------------+-----------+---------------+---------------+----------+------------+--------+-------------+
65-
| 4398046511104 | 1024 | 0 | 8 | 4922 | 0 | 1338 | 3249 | 335 | mito | Leader |
66-
+---------------+----------+---------------+-------------+-----------+---------------+---------------+----------+------------+--------+-------------+
64+
+---------------+----------+---------------+-------------+-----------+---------------+---------------+----------+---------+------------+--------+-------------+
65+
| region_id | table_id | region_number | region_rows | disk_size | memtable_size | manifest_size | sst_size | sst_num | index_size | engine | region_role |
66+
+---------------+----------+---------------+-------------+-----------+---------------+---------------+----------+---------+------------+--------+-------------+
67+
| 4398046511104 | 1024 | 0 | 8 | 4922 | 0 | 1338 | 3249 | 1 | 335 | mito | Leader |
68+
+---------------+----------+---------------+-------------+-----------+---------------+---------------+----------+---------+------------+--------+-------------+
6769
```

0 commit comments

Comments
 (0)