-
Notifications
You must be signed in to change notification settings - Fork 6k
Open
Labels
component/ddlThis issue is related to DDL of TiDB.This issue is related to DDL of TiDB.type/feature-requestCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.
Description
Feature Request
Is your feature request related to a problem? Please describe:
This issue will optimize the query performance for metadata-related statements
Scenario1:
SELECT column_name
FROM information_schema.statistics
WHERE index_name = 'PRIMARY'
AND table_schema = database()
AND table_name = 'xx'
ORDER BY seq_in_index;
Scenario2:
SELECT table_comment
FROM information_schema.tables
WHERE table_schema = database() AND table_name = 'xxx'
Scenario3:
SELECT table_name
FROM information_schema.tables
WHERE table_schema = database() AND table_type = 'xxx'
Describe the feature you'd like:
Speed up the query for metadata to be executed more quickly.
- Push down predicates to memTableReader.
- Do column pruning when reading infoschema.tables.
Metadata
Metadata
Assignees
Labels
component/ddlThis issue is related to DDL of TiDB.This issue is related to DDL of TiDB.type/feature-requestCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.