Tejan Hede
03/05/2026, 7:11 AMTejan Hede
03/05/2026, 7:32 AMCasey Luo
03/05/2026, 7:36 AMINDEX_SIZE in system table be_tablets , you can use this table to find out which table takes most of the disk spaceTejan Hede
03/05/2026, 8:01 AMroot@fcc-be-3:/opt/starrocks# find /opt/starrocks/be/storage/data -name "index.l*" -ls | awk '{s+=$7} END {printf "PK Index: %.2f GB\n", s/1024/1024/1024}'
PK Index: 787.21 GB
SQL Query -
SELECT bt.TABLE_ID, tc.TABLE_SCHEMA AS db_name, tc.TABLE_NAME, COUNT(*) AS tablet_count, ROUND(SUM(bt.DATA_SIZE)/1024/1024/1024, 2) AS data_gb, ROUND(SUM(bt.INDEX_DISK)/1024/1024/1024, 2) AS reported_index_gb, SUM(bt.NUM_ROW) AS total_rows FROM information_schema.be_tablets bt LEFT JOIN information_schema.tables_config tc ON bt.TABLE_ID = tc.TABLE_ID WHERE bt.BE_ID = 628937 GROUP BY bt.TABLE_ID, tc.TABLE_SCHEMA, tc.TABLE_NAME ORDER BY tablet_count DESC;Casey Luo
03/06/2026, 4:06 PMTejan Hede
04/14/2026, 10:09 AM