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

add guidance on using correct stats when tuning queries with EXPLAIN #18428

Open
rytaft opened this issue Mar 28, 2024 · 0 comments
Open

add guidance on using correct stats when tuning queries with EXPLAIN #18428

rytaft opened this issue Mar 28, 2024 · 0 comments
Assignees

Comments

@rytaft
Copy link
Contributor

rytaft commented Mar 28, 2024

Rebecca Taft (rytaft) commented:

Opening a new ticket as requested in #18338 (comment) cc @taroface

There was a support issue where the customer was tuning their queries and was concerned that the EXPLAIN output showed some full table scans. However, this was expected since the customer was testing with empty tables, and therefore the stats did not represent the production environment.

We should consider updating the docs to mention that most of the time the optimizer makes the right decision, and if you see a full scan you should (a) make sure that it's actually causing a performance problem, and (b) confirm that the optimizer would actually choose a full scan in the production environment (with correct stats, cluster topology, etc)? Only then should a customer try to override the optimizer's decision.

Jira Issue: DOC-10000

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