-
Notifications
You must be signed in to change notification settings - Fork 459
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
consolidate guidance on avoiding full scans; update session vars #18338
Conversation
Files changed:
|
✅ Deploy Preview for cockroachdb-api-docs canceled.
|
✅ Deploy Preview for cockroachdb-interactivetutorials-docs canceled.
|
✅ Netlify Preview
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, thanks! Sorry for the delay.
There was another 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.
Do you think it makes sense to update this section of 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 use one of these tools to override the optimizer's decision.
If you think that should be a different PR, I'm happy to file a separate docs issue. Let me know what you think. Thanks!
TFTR @rytaft! I had a follow-up question (above). I do think that a separate docs issue with some more details would make sense for the other recommendations you describe. |
Done: #18428 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thank you! And sorry for the delays!
b7c44db
to
c4ec112
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good refactor. I'll go ahead and approve because I don't feel super strongly about any of my feedback.
0f27f7e
to
16e9a05
Compare
16e9a05
to
b4eaf59
Compare
DOC-9629
disallow_full_table_scans
andlarge_full_scan_rows
settings (for the past 3 docs versions) as it looked like the behavior of these settings was updated in sql, opt: support hint to disallow full scan, update coster to avoid full scans cockroach#71317 but this wasn't documented.