Skip to content

Instantly share code, notes, and snippets.

@swateek
Created April 17, 2025 08:20
Show Gist options
  • Save swateek/d08a50b38c18a4f83caac8b6f0e836a1 to your computer and use it in GitHub Desktop.
Save swateek/d08a50b38c18a4f83caac8b6f0e836a1 to your computer and use it in GitHub Desktop.
Blobs In Singlestore
USE information_schema;

DESC MV_DATA_DISK_USAGE;

SELECT * FROM MV_DATA_DISK_USAGE;

SELECT DATABASE_NAME, FORMAT(SUM(`BLOBS_B`) / 1024/1024, 0) MB
FROM MV_DATA_DISK_USAGE
GROUP BY DATABASE_NAME
ORDER BY MB DESC;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment