Compare commits

..

4 Commits

2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
<!--
title: Запрос размера таблиц Clickhouse
description:
published: true
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>
<figure class="image"><img src="/sysadmin/query-db.png"></figure>

BIN
sysadmin/query-db.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB