Skip to content

Add wp db tables --size command for listing tables with individual sizes #305

Closed as not planned

Description

@mehrabmorshed

I would like to suggest a new WP-CLI command: wp db tables --size

It will help to identify bloated tables and will be helpful for performance audits.

Proposed Command:
wp db tables --size

Output Example:

wp_posts        12 MB
wp_postmeta     14 MB
wp_options      1 MB

Activity

  1. transferred this issue fromwp-cli/ideason Feb 1, 2026
  2. swissspidy commented on Feb 1, 2026

    @swissspidy
    Member

    How is this different from the existing wp db size --tables? That already displays each table name and size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions