mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
25 lines
803 B
Plaintext
25 lines
803 B
Plaintext
-- { echo }
|
|
select view_name, read_rows, read_bytes, written_rows, written_bytes from system.query_views_log where startsWith(view_name, currentDatabase() || '.mv') order by view_name format Vertical;
|
|
Row 1:
|
|
──────
|
|
view_name: default.mv1
|
|
read_rows: 1000000
|
|
read_bytes: 4000000
|
|
written_rows: 1000000
|
|
written_bytes: 4000000
|
|
|
|
Row 2:
|
|
──────
|
|
view_name: default.mv2
|
|
read_rows: 1000000
|
|
read_bytes: 4000000
|
|
written_rows: 1000000
|
|
written_bytes: 4000000
|
|
select read_rows, read_bytes, written_rows, written_bytes from system.query_log where type = 'QueryFinish' and query_kind = 'Insert' and current_database = currentDatabase() format Vertical;
|
|
Row 1:
|
|
──────
|
|
read_rows: 3000000
|
|
read_bytes: 16000000
|
|
written_rows: 3000000
|
|
written_bytes: 12000000
|