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

Initial count of the number of rows must be done from information_schema.tables #2

Open
RiflerRick opened this issue May 22, 2019 · 0 comments
Labels
enhancement enhancement of an existing feature good first issue Good for newcomers

Comments

@RiflerRick
Copy link
Owner

currently in case APPROX_TABLE_SIZE is not given, select count is performed on the table which is highly inefficiently. a better fallback would be to use information_schema.tables more specifically:

select TABLE_ROWS from information_schema.tables where table_schema="helloworld" and table_name="ilapahsi"
@RiflerRick RiflerRick added enhancement enhancement of an existing feature good first issue Good for newcomers labels May 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement enhancement of an existing feature good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant