Get Table Sizes (in MB) for a database
✓ Published0🌍 Public
WWilliamQLiu
Last edited Jan 30, 2019
Created on Jan 30, 2019
This visualization shows the size of each table in a MySQL database in megabytes, sorted from largest to smallest. It displays the table names alongside their computed sizes using a bar chart or similar comparison layout. The SQL query in `get_table_size.sql` calculates each table’s total size by summing `data_length` and `index_length` from the `information_schema.TABLES` metadata, then divides by 1024 twice and rounds to two decimal places. The query orders results by size in descending order, and the visualization renders this data as its primary output.
AI-generated description