Note
This view is introduced since OceanBase Database V4.0.0.
Purpose
This view displays optimizer statistics for all indexes in the database.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| OWNER | varchar(128) | NO | The owner of the index. |
| INDEX_NAME | varchar(128) | NO | The name of the index. |
| TABLE_OWNER | varchar(128) | NO | The owner of the index object. |
| TABLE_NAME | varchar(128) | NO | The name of the index object. |
| PARTITION_NAME | varchar(128) | NO | The name of the partition. |
| PARTITION_POSITION | decimal(10,0) | NO | The position of the partition in the index. |
| SUBPARTITION_NAME | varchar(128) | NO | The name of the subpartition. |
| SUBPARTITION_POSITION | decimal(10,0) | NO | The position of the subpartition in the partition. |
| OBJECT_TYPE | varchar(12) | NO | The object type. Valid values include: |
| BLEVEL | decimal(10,0) | NO | The default value is NULL. |
| LEAF_BLOCKS | decimal(10,0) | NO | The default value is NULL. |
| DISTINCT_KEYS | decimal(10,0) | NO | The default value is NULL. |
| AVG_LEAF_BLOCKS_PER_KEY | decimal(10,0) | NO | The default value is NULL. |
| AVG_DATA_BLOCKS_PER_KEY | decimal(10,0) | NO | The default value is NULL. |
| CLUSTERING_FACTOR | decimal(10,0) | NO | The default value is NULL. |
| NUM_ROWS | decimal(10,0) | NO | The number of rows in the index. |
| AVG_CACHED_BLOCKS | decimal(10,0) | NO | The default value is NULL. |
| AVG_CACHE_HIT_RATIO | decimal(10,0) | NO | The default value is NULL. |
| SAMPLE_SIZE | decimal(10,0) | NO | The default value is NULL. |
| LAST_ANALYZED | datetime(6) | NO | The date when the index was last analyzed. |
| GLOBAL_STATS | varchar(3) | NO | Indicates whether statistics are collected or incrementally maintained: |
| USER_STATS | varchar(3) | NO | Indicates whether statistics are directly input by users: |
| STATTYPE_LOCKED | varchar(5) | NO | The type of statistics lock. |
| STALE_STATS | varchar(3) | NO | Indicates whether the statistics of the object are stale. |
| SCOPE | varchar(7) | NO | The default value is NULL. |