SELECT
table_schema,table_name, count(*) TABLES,
round(sum(table_rows)/1000000,2) rows,
round(sum(data_length)/(1024*1024*1024),2) DATA,
round(sum(index_length)/(1024*1024*1024),2) idx,
round(sum(data_length+index_length)/(1024*1024*1024),2) total_size,
round(sum(index_length)/sum(data_length),2) idxfrac
FROM
information_schema.TABLES
group by table_schema,table_name
order by 7 desc
Nessun commento:
Posta un commento