Skip to main content

TABLE_STATISTICS and INTERNAL_TABLE_STATISTICS

This view contains information about table statistics. It contains one row per table, per partition. INTERNAL_TABLE_STATICS (available starting with v7.8) contains the same columns, and shows information for SingleStoreDB internal metadata tables.

This information can be useful for Detecting and Resolving Data Skew.

Column Name

Description

DATABASE_NAME

The name of the related database.

TABLE_NAME

The name of the related table.

ORDINAL

The partition ID number.

HOST

The hostname or IP address for the related node.

PORT

The port number of the related node.

NODE_TYPE

The type of the related node: leaf, master aggregator, or child aggregator.

PARTITION_TYPE

The type of partition: master or secondary.

ROWS

The number of rows in a given table and partition.

MEMORY_USE

The memory use, in bytes, of a given table and partition.

STORAGE_TYPE

The storage type of a given table and partition.

ROWS_IN_MEMORY

The number of rows stored in memory for a given table and partition.