Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimization statements performance related to system meta data #50305

Open
Benjamin2037 opened this issue Jan 11, 2024 · 1 comment
Open

Optimization statements performance related to system meta data #50305

Benjamin2037 opened this issue Jan 11, 2024 · 1 comment
Assignees
Labels
component/ddl This issue is related to DDL of TiDB. type/feature-request Categorizes issue or PR as related to a new feature.

Comments

@Benjamin2037
Copy link
Collaborator

Benjamin2037 commented Jan 11, 2024

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.

  1. Push down predicates to memTableReader.
  2. Do column pruning when reading infoschema.tables.
@ywqzzy
Copy link
Contributor

ywqzzy commented Apr 1, 2024

/close as completed

@ywqzzy ywqzzy closed this as completed Apr 1, 2024
@ywqzzy ywqzzy reopened this Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/ddl This issue is related to DDL of TiDB. type/feature-request Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants