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

Improve Schema Engine's TablesWithSize80 query #17066

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Commits on Oct 25, 2024

  1. Improve Schema engine's TablesWithSize80 query

    This avoids the table scan on <temporary> stage from the query
    execution in the middle here:
    EXPLAIN: -> Filter: (`TABLE_NAME` like 'trb3%')  (actual time=1030..1030 rows=1 loops=1)
        -> Table scan on <temporary>  (actual time=1030..1030 rows=3005 loops=1)
            -> Aggregate using temporary table  (actual time=1030..1030 rows=3005 loops=1)
    ...
    
    Signed-off-by: Matt Lord <[email protected]>
    mattlord committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    51741ed View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5da3b82 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4558c4e View commit details
    Browse the repository at this point in the history
  4. Make query exponentially faster

    Signed-off-by: Matt Lord <[email protected]>
    mattlord committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    5d71b8e View commit details
    Browse the repository at this point in the history
  5. Minor change from self review

    Signed-off-by: Matt Lord <[email protected]>
    mattlord committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    94d4c96 View commit details
    Browse the repository at this point in the history
  6. Be less aggressive in timeout extension

    Signed-off-by: Matt Lord <[email protected]>
    mattlord committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    bed84fa View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    1b3511b View commit details
    Browse the repository at this point in the history