Check storage and maintain tables
Storage lists tables with their available row counts, data sizes, index sizes and total sizes. The header summarizes database size and the space used by table data and indexes.
Check storage and maintain tables
Section titled “Check storage and maintain tables”- Open Admin › Storage.
- Choose Size (Largest) from the sort menu.
- Compare Data, Index and Total for the largest tables.
- Check Health for maintenance candidates.

For individual indexes and Redshift distribution or sort design, continue with slow queries and indexes.
Run maintenance
Section titled “Run maintenance”- Open the table row’s Maintenance actions menu.
- Choose an available maintenance action.
- Check the table name and SQL to execute: in the dialog.
- Review the operation’s effect on the database.
- Enter the connection password if requested.
- Confirm the operation.
Maintenance runs as a background task. Check its completion before comparing the refreshed statistics.
Database differences
Section titled “Database differences”The SQL preview identifies the command that will run on your database.
| Database | Storage and maintenance |
|---|---|
| PostgreSQL | Table and index sizes plus maintenance statistics. Actions include Vacuum, Vacuum & Analyze and Analyze. |
| MySQL and MariaDB | Table data and combined index sizes from server metadata. Analyze updates statistics; Optimize performs table optimization when available. |
| SQLite | Database file size and per-table sizes through dbstat when available. Analyze updates table statistics; an optimization that previews VACUUM operates on the whole database file. |
| SQL Server | Table data, index and reserved-space statistics. Analyze previews an update of table statistics. |
| Amazon Redshift | Table storage information from SVV_TABLE_INFO, alongside the design information described on the indexes page. |
For statistics access and prerequisites, see admin data unavailable.
Truncate or drop a table
Section titled “Truncate or drop a table”These actions are in the table structure view, separate from storage maintenance.
Check the target database and your backup before continuing. Truncate Table removes every row; Drop Table removes the table and its data. TableAI cannot undo either completed action.
- Open Admin › Schema.
- Select the table.
- Locate Danger Zone in its structure view.
- Choose Truncate Table or Drop Table.
- Review the target, available options and SQL preview.
- Type the table name if the dialog requests it.
- Complete the required password or approval prompt.
- Click the action button to confirm.
Options depend on the database. Read their effects before enabling them: a cascade can affect dependent objects or other tables.
Related
Section titled “Related”- Table-size SQL: PostgreSQL, MySQL and MariaDB.
- Change structure for column, key and index edits.
- Production databases for account permissions and change review.
- AI Database Analysis for a storage-focused report.