docs: update sysadmin/Databases/Clickhouse/Query-size-tables

main
Федоров Дмитрий 2024-03-13 10:13:44 +00:00 committed by Dmitriy Fedorov
parent 407671efbe
commit 63a0994182
1 changed files with 9 additions and 8 deletions

View File

@ -2,16 +2,17 @@
title: Запрос размера таблиц Clickhouse
description:
published: true
date: 2024-03-13T10:11:53.025Z
date: 2024-03-13T10:13:40.903Z
tags: clickhouse, query
editor: ckeditor
dateCreated: 2024-03-13T10:11:53.025Z
-->
<pre><code class="language-plaintext">SELECT table,
formatReadableSize(sum(bytes)) as size,
min(min_date) as min_date,
max(max_date) as max_date
FROM system.parts
WHERE active
GROUP BY table</code></pre>
<pre><code class="language-plaintext">SELECT table,
formatReadableSize(sum(bytes)) as size,
min(min_date) as min_date,
max(max_date) as max_date
FROM system.parts
WHERE active
GROUP BY table</code></pre>
<figure class="image"><img src="/sysadmin/query-db.png"></figure>