Created
July 27, 2016 01:20
-
-
Save alexey-milovidov/5437d0513fafdbb638d6797390c4a55f to your computer and use it in GitHub Desktop.
Example of column sizes in graphite table.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:) SELECT name, formatReadableSize(sum(bytes)) FROM system.columns WHERE table = 'graphite_impl' AND database = 'default' GROUP BY name ORDER BY sum(bytes) DESC | |
SELECT | |
name, | |
formatReadableSize(sum(bytes)) | |
FROM system.columns | |
WHERE (table = 'graphite_impl') AND (database = 'default') | |
GROUP BY name | |
ORDER BY sum(bytes) DESC | |
┌─name──────┬─formatReadableSize(sum(bytes))─┐ | |
│ Time │ 6.47 TiB │ | |
│ Timestamp │ 5.97 TiB │ | |
│ Value │ 3.04 TiB │ | |
│ Path │ 1.12 TiB │ | |
│ Date │ 38.98 GiB │ | |
└───────────┴────────────────────────────────┘ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment