Skip to content

Commit

Permalink
Fixes #9553.
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjevans committed Apr 6, 2021
1 parent e5d1523 commit 305cbcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v21.1/vectorized-execution.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ You can configure vectorized execution with the `vectorize` [session variable](s

Option | Description
----------|------------
`on` | Turns on vectorized execution for all queries on rows over the [`vectorize_row_count_threshold`](#setting-the-row-threshold-for-vectorized-execution) (1000 rows, by default).<br><br>**Default:** `vectorize=on`
`on` | Turns on vectorized execution for all queries on rows over the [`vectorize_row_count_threshold`](#setting-the-row-threshold-for-vectorized-execution) (0 rows, by default, meaning all queries will use the vectorized engine).<br><br>**Default:** `vectorize=on`
`off` | Turns off vectorized execution for all queries.

For information about setting session variables, see [`SET` &lt;session variable&gt;](set-vars.html).
Expand All @@ -29,7 +29,7 @@ To see if CockroachDB will use the vectorized execution engine for a query, run

The efficiency of vectorized execution increases with the number of rows processed. If you are querying a table with a small number of rows, it is more efficient to use row-oriented execution.

By default, vectorized execution is enabled for queries on tables of 1000 rows or more. If the number of rows in a table falls below 1000, CockroachDB uses the row-oriented execution engine instead.
By default, vectorized execution is enabled for all queries.

For performance tuning, you can change the minimum number of rows required to use the vectorized engine to execute a query plan in the current session with the `vectorize_row_count_threshold` [session variable](set-vars.html).

Expand Down

0 comments on commit 305cbcc

Please sign in to comment.