docs/content/v2024.2/additional-features/parallel-query.md
YugabyteDB supports the use of PostgreSQL parallel queries. Using parallel queries, the query planner can devise plans that leverage multiple CPUs to answer queries faster.
Currently, YugabyteDB supports parallel queries for colocated tables; support for hash- and range-sharded tables is planned.
To configure parallel queries, set the following configuration parameters.
| Parameter | Description | Default |
|---|---|---|
| yb_enable_parallel_append | Enables the planner's use of parallel append plans in YugabyteDB. | false |
| enable_parallel_append | PostgreSQL parameter for enabling the planner's use of parallel append plans. For more information, refer to Parallel Append in the PostgreSQL documentation. | true |
| yb_parallel_range_rows | The number of rows to plan per parallel worker. | 0 |
| yb_parallel_range_size | Approximate size of parallel range for DocDB relation scans. Numeric with memory unit (B, kB, MB, or GB). | 1MB |
In addition, you can use the following PostgreSQL configuration parameters to configure parallel queries:
For more information, refer to How Parallel Query Works in the PostgreSQL documentation.
To enable parallel query, set the following parameters:
true.true (the default).