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

Optimize SHOW TABLES #631

Open
findepi opened this issue Apr 12, 2019 · 6 comments
Open

Optimize SHOW TABLES #631

findepi opened this issue Apr 12, 2019 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@findepi
Copy link
Member

findepi commented Apr 12, 2019

When using SHOW TABLES against Hive connector, the Metastore is queries twice.
This is because

Since SHOW TABLES does not differentiate between tables and views, we could do this faster.

@findepi findepi added the enhancement New feature or request label Apr 12, 2019
@kokosing
Copy link
Member

Does it actually do a call to HMS? Are you sure that results are not taken from cache?

@Praveen2112
Copy link
Member

But if the cache is disabled it would fetch from the HMS right ?

@kokosing
Copy link
Member

Transactional cache is always enabled. We do not query HMS twice for the same thing within the same transaction.

@findepi
Copy link
Member Author

findepi commented Apr 12, 2019

@findepi
Copy link
Member Author

findepi commented Apr 25, 2019

Probably best fix would be to make information schema aware of selected columns.
When table_type from information_schema.tables is not needed, InformationSchemaPageSourceProvider#buildTables wouldn't need to list views.

@findepi findepi changed the title Optimize SHOW TABLES Optimize SHOW TABLES Apr 26, 2019
@slinjhu
Copy link

slinjhu commented Jan 8, 2024

It takes forever when I do "SHOW TABLES" for ~6k tables. Any update on the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

4 participants