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
sql: introduce index_recommendations_enabled session variable #73346
Conversation
b8c6b5a
to
63cac0f
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.
Reviewed 6 of 6 files at r1, 4 of 4 files at r2, 25 of 57 files at r3, 10 of 10 files at r4, all commit messages.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @nehageorge and @rytaft)
-- commits, line 46 at r4:
nit: feels like it would be more natural (and more consistent with other settings) to call this index_recommendations_enabled
and have it default to true. (I see we have a couple of settings that do start with disable, but I think that was a mistake)
63cac0f
to
a9dc61b
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.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @rytaft)
Previously, rytaft (Rebecca Taft) wrote…
nit: feels like it would be more natural (and more consistent with other settings) to call this
index_recommendations_enabled
and have it default to true. (I see we have a couple of settings that do start with disable, but I think that was a mistake)
Makes sense. Done.
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.
Reviewed 10 of 10 files at r5, all commit messages.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @rytaft)
a9dc61b
to
fa9899b
Compare
This commit introduces a session variable to control whether or not index recommendations are shown at the bottom of the EXPLAIN plan. If `index_recommendations_enabled` is set to true, index recommendations are shown. Otherwise, they are not shown. This variable defaults to true. Release note (sql change): Index recommendations can be omitted from the EXPLAIN plan if the `index_recommendations_enabled` session variable is set to false.
fa9899b
to
94f69be
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.
Reviewed 5 of 10 files at r5, 65 of 65 files at r6, all commit messages.
Reviewable status: complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @nehageorge)
I wonder if we want a cluster setting so users can turn it off for all sessions. |
I think we're moving away from the |
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 point @mgartner. Do you think it would make sense to have both a cluster setting and a session setting?
Disregard my most recent comment as per this comment. |
TFTRs! bors r+ |
Not really multitenancy related, we're just adding infrastructure for setting per-role or per-db defaults for session settings, which makes these cluster settings unnecessary. |
Build failed (retrying...): |
Makes sense. Let's merge this as-is, and @nehageorge can make an issue to track making a per-db/role default for this setting once the infrastructure is in place. |
Build succeeded: |
Created an issue for the future per-role/per-db setting here: #73918. |
This commit introduces a session variable to control whether or not index
recommendations are shown at the bottom of the EXPLAIN plan. If
index_recommendations_enabled
is set to true, index recommendationsare shown. Otherwise, they are not shown. This variable defaults to true.
Release note (sql change): Index recommendations can be omitted from
the EXPLAIN plan if the
index_recommendations_enabled
session variableis set to false.
NOTE: This PR only concerns the final commit. Other commits will be reviewed and merged separately.