8000 Tracking: optimizer session variables and hints · Issue #7491 · risingwavelabs/risingwave · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Tracking: optimizer session variables and hints #7491

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

Open
1 of 5 tasks
kwannoel opened this issue Jan 19, 2023 · 2 comments
Open
1 of 5 tasks

Tracking: optimizer session variables and hints #7491

kwannoel opened this issue Jan 19, 2023 · 2 comments
Assignees
Labels
type/feature Type: New feature. user-facing-changes Contains changes that are visible to users

Comments

@kwannoel
Copy link
Contributor
kwannoel commented Jan 19, 2023

Session variables:

Semantics:

  • FORCE=false, ENABLE=true -> enable the optimization
  • FORCE=true, ENABLE=false -> whichever is set latest, will override the other option.
  • FORCE=true, ENABLE =true -> force using the optimization, whenever there's a choice between using it in some other optimization.
  • FORCE=false, ENABLE=false -> disable the optimization

https://www.postgresql.org/docs/current/runtime-config-query.html

Optimizer hints:

See discussion: #7014

@chenzl25
Copy link
Contributor

DISABLE_TWO_PHASE_AGG and FORCE_TWO_PHASE_AGG seem can't be both set to true. A priority needs to be introduced.

@lmatz
Copy link
Contributor
lmatz commented Feb 15, 2023

Suppose a query can utilize multiple indexes(but only exclusively) to accelerate itself, is it possible for the current optimizer to choose a suboptimal one?

I guess this can be supported only after hints are introduced if let's say this is necessary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature Type: New feature. user-facing-changes Contains changes that are visible to users
Projects
None yet
Development

No branches or pull requests

3 participants
0