Skip to content

Commit 7b9dc53

Browse files
authored
feat: add written_bytes_since_open desc (#2103)
1 parent d2cdd03 commit 7b9dc53

File tree

2 files changed

+46
-42
lines changed

2 files changed

+46
-42
lines changed

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

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,23 @@ DESC REGION_STATISTICS;
1919
The output is as follows:
2020

2121
```sql
22-
+---------------+--------+------+------+---------+---------------+
23-
| Column | Type | Key | Null | Default | Semantic Type |
24-
+---------------+--------+------+------+---------+---------------+
25-
| region_id | UInt64 | | NO | | FIELD |
26-
| table_id | UInt32 | | NO | | FIELD |
27-
| region_number | UInt32 | | NO | | FIELD |
28-
| region_rows | UInt64 | | YES | | FIELD |
29-
| disk_size | UInt64 | | YES | | FIELD |
30-
| memtable_size | UInt64 | | YES | | FIELD |
31-
| manifest_size | UInt64 | | YES | | FIELD |
32-
| sst_num | UInt64 | | YES | | FIELD |
33-
| sst_size | UInt64 | | YES | | FIELD |
34-
| index_size | UInt64 | | YES | | FIELD |
35-
| engine | String | | YES | | FIELD |
36-
| region_role | String | | YES | | FIELD |
37-
+---------------+--------+------+------+---------+---------------+
22+
+--------------------------+--------+------+------+---------+---------------+
23+
| Column | Type | Key | Null | Default | Semantic Type |
24+
+--------------------------+--------+------+------+---------+---------------+
25+
| region_id | UInt64 | | NO | | FIELD |
26+
| table_id | UInt32 | | NO | | FIELD |
27+
| region_number | UInt32 | | NO | | FIELD |
28+
| region_rows | UInt64 | | YES | | FIELD |
29+
| written_bytes_since_open | UInt64 | | YES | | FIELD |
30+
| disk_size | UInt64 | | YES | | FIELD |
31+
| memtable_size | UInt64 | | YES | | FIELD |
32+
| manifest_size | UInt64 | | YES | | FIELD |
33+
| sst_size | UInt64 | | YES | | FIELD |
34+
| sst_num | UInt64 | | YES | | FIELD |
35+
| index_size | UInt64 | | YES | | FIELD |
36+
| engine | String | | YES | | FIELD |
37+
| region_role | String | | YES | | FIELD |
38+
+--------------------------+--------+------+------+---------+---------------+
3839
```
3940

4041
Fields in the `REGION_STATISTICS` table are described as follows:
@@ -43,6 +44,7 @@ Fields in the `REGION_STATISTICS` table are described as follows:
4344
- `table_id`: The ID of the table.
4445
- `region_number`: The number of the region in the table.
4546
- `region_rows`: The number of rows in the region.
47+
- `written_bytes_since_open`: The number of bytes written to the region since the region was opened.
4648
- `disk_size`: The total size of data files in the region, including data, index and metadata etc.
4749
- `memtable_size`: The region's total size of memtables.
4850
- `manifest_size`: The region's total size of manifest files.
@@ -63,9 +65,9 @@ WHERE t.table_name = 'system_metrics';
6365

6466
Output:
6567
```sql
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-
+---------------+----------+---------------+-------------+-----------+---------------+---------------+----------+---------+------------+--------+-------------+
68+
+---------------+----------+---------------+-------------+--------------------------+-----------+---------------+---------------+----------+---------+------------+--------+-------------+
69+
| region_id | table_id | region_number | region_rows | written_bytes_since_open | disk_size | memtable_size | manifest_size | sst_size | sst_num | index_size | engine | region_role |
70+
+---------------+----------+---------------+-------------+--------------------------+-----------+---------------+---------------+----------+---------+------------+--------+-------------+
71+
| 4398046511104 | 1024 | 0 | 8 | 0 | 4922 | 0 | 1338 | 3249 | 1 | 335 | mito | Leader |
72+
+---------------+----------+---------------+-------------+--------------------------+-----------+---------------+---------------+----------+---------+------------+--------+-------------+
7173
```

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

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,23 @@ DESC REGION_STATISTICS;
1919
输出如下:
2020

2121
```sql
22-
+---------------+--------+------+------+---------+---------------+
23-
| Column | Type | Key | Null | Default | Semantic Type |
24-
+---------------+--------+------+------+---------+---------------+
25-
| region_id | UInt64 | | NO | | FIELD |
26-
| table_id | UInt32 | | NO | | FIELD |
27-
| region_number | UInt32 | | NO | | FIELD |
28-
| region_rows | UInt64 | | YES | | FIELD |
29-
| disk_size | UInt64 | | YES | | FIELD |
30-
| memtable_size | UInt64 | | YES | | FIELD |
31-
| manifest_size | UInt64 | | YES | | FIELD |
32-
| sst_num | UInt64 | | YES | | FIELD |
33-
| sst_size | UInt64 | | YES | | FIELD |
34-
| index_size | UInt64 | | YES | | FIELD |
35-
| engine | String | | YES | | FIELD |
36-
| region_role | String | | YES | | FIELD |
37-
+---------------+--------+------+------+---------+---------------+
22+
+--------------------------+--------+------+------+---------+---------------+
23+
| Column | Type | Key | Null | Default | Semantic Type |
24+
+--------------------------+--------+------+------+---------+---------------+
25+
| region_id | UInt64 | | NO | | FIELD |
26+
| table_id | UInt32 | | NO | | FIELD |
27+
| region_number | UInt32 | | NO | | FIELD |
28+
| region_rows | UInt64 | | YES | | FIELD |
29+
| written_bytes_since_open | UInt64 | | YES | | FIELD |
30+
| disk_size | UInt64 | | YES | | FIELD |
31+
| memtable_size | UInt64 | | YES | | FIELD |
32+
| manifest_size | UInt64 | | YES | | FIELD |
33+
| sst_size | UInt64 | | YES | | FIELD |
34+
| sst_num | UInt64 | | YES | | FIELD |
35+
| index_size | UInt64 | | YES | | FIELD |
36+
| engine | String | | YES | | FIELD |
37+
| region_role | String | | YES | | FIELD |
38+
+--------------------------+--------+------+------+---------+---------------+
3839
```
3940

4041
`REGION_STATISTICS` 表中的字段描述如下:
@@ -43,6 +44,7 @@ DESC REGION_STATISTICS;
4344
- `table_id`: 表的 ID。
4445
- `region_number`: Region 在表中的编号。
4546
- `region_rows`: Region 中的记录行数。
47+
- `written_bytes_since_open`: Region 自打开以来写入的字节数。
4648
- `disk_size`: Region 中数据文件的总大小,包括数据、索引及元信息等。
4749
- `memtable_size`: Region 中内存 memtables 的总大小。
4850
- `manifest_size`: Region 中元信息 manifest 文件的总大小。
@@ -61,9 +63,9 @@ WHERE t.table_name = 'system_metrics';
6163

6264
输出:
6365
```sql
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-
+---------------+----------+---------------+-------------+-----------+---------------+---------------+----------+---------+------------+--------+-------------+
66+
+---------------+----------+---------------+-------------+--------------------------+-----------+---------------+---------------+----------+---------+------------+--------+-------------+
67+
| region_id | table_id | region_number | region_rows | written_bytes_since_open | disk_size | memtable_size | manifest_size | sst_size | sst_num | index_size | engine | region_role |
68+
+---------------+----------+---------------+-------------+--------------------------+-----------+---------------+---------------+----------+---------+------------+--------+-------------+
69+
| 4398046511104 | 1024 | 0 | 8 | 0 | 4922 | 0 | 1338 | 3249 | 1 | 335 | mito | Leader |
70+
+---------------+----------+---------------+-------------+--------------------------+-----------+---------------+---------------+----------+---------+------------+--------+-------------+
6971
```

0 commit comments

Comments
 (0)