Skip to content

Commit

Permalink
Add cluster setting to 21.2 (cockroachdb#14621)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephanie Bodoff authored Jul 25, 2022
1 parent 4e7d6c6 commit f52053f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions v21.2/cost-based-optimizer.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ To change this setting, which is controlled by the `reorder_joins_limit` [sessio
> SET reorder_joins_limit = 0;
~~~

To disable this feature, set the variable to `0`. You can configure the default `reorder_joins_limit` session setting with the [cluster setting](cluster-settings.html) `sql.defaults.reorder_joins_limit`, which has a default value of `8`.

{{site.data.alerts.callout_danger}}
We strongly recommend not setting this value higher than 8 to avoid performance degradation. If set too high, the cost of generating and costing execution plans can end up dominating the total execution time of the query.
{{site.data.alerts.end}}
Expand Down

0 comments on commit f52053f

Please sign in to comment.