sql: disable histogram usage for internal executor#104443
sql: disable histogram usage for internal executor#104443craig[bot] merged 1 commit intocockroachdb:masterfrom
Conversation
Since cockroachdb#101486, the internal executor has used global defaults for session settings. This effectively enabled `optimizer_use_histograms` for the internal executor, which was disabled before. This caused a huge performance regression. The root cause of the regression is not yet understood. This commit disables `optimizer_use_histograms` as a temporary solution for the performance regression. Informs cockroachdb#102954 Release note: None
|
It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR? 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
rafiss
left a comment
There was a problem hiding this comment.
thanks for tracking this down!
DrewKimball
left a comment
There was a problem hiding this comment.
Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status:complete! 1 of 0 LGTMs obtained (waiting on @mgartner)
|
TFTRs! bors r+ |
michae2
left a comment
There was a problem hiding this comment.
Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status:complete! 2 of 0 LGTMs obtained (waiting on @mgartner)
|
Build failed (retrying...): |
|
Build failed (retrying...): |
|
Build succeeded: |
|
Do we want to backport this to v23.1? |
I don't think so. #101486 introduced the regression and that was not backported to v23.1, AFAICT. |

Since #101486, the internal executor has used global defaults for
session settings. This effectively enabled
optimizer_use_histogramsfor the internal executor, which was disabled before. This caused a
huge performance regression. The root cause of the regression is not yet
understood. This commit disables
optimizer_use_histogramsas atemporary solution for the performance regression.
Informs #102954
Epic: None
Release note: None