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 table lookup #85

Open
pivnicek opened this issue Oct 22, 2018 · 2 comments
Open

Optimize table lookup #85

pivnicek opened this issue Oct 22, 2018 · 2 comments

Comments

@pivnicek
Copy link
Contributor

pivnicek commented Oct 22, 2018

@Halama
Copy link
Member

Halama commented Oct 22, 2018

It is caused by columns which requires OPEN_FULL_TABLE

If I fetch, it took few seconds:

SELECT 
 TABLE_NAME,
 TABLE_SCHEMA,
 TABLE_TYPE,
 TABLE_COMMENT
FROM INFORMATION_SCHEMA.TABLES as c WHERE c.TABLE_SCHEMA = 'dbname';

If I add TABLE_ROWS it takes about 4 minutes.

SELECT 
 TABLE_NAME,
 TABLE_SCHEMA,
 TABLE_TYPE,
 TABLE_COMMENT,
TABLE_ROWS
FROM INFORMATION_SCHEMA.TABLES as c WHERE c.TABLE_SCHEMA = 'dbname';

There is about 700 tables in database mixture of MyISAM and Innodb.

@Halama
Copy link
Member

Halama commented Oct 22, 2018

for reference https://keboola.zendesk.com/agent/tickets/9340

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants