Compare commits
4 Commits
f12a5ae974
...
63a0994182
| Author | SHA1 | Date |
|---|---|---|
|
|
63a0994182 | |
|
|
407671efbe | |
|
|
0845684d9f | |
|
|
47dff00dad |
|
|
@ -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>
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 66 KiB |
Loading…
Reference in New Issue