All Products
Search
Document Center

PolarDB:Parameters

Last Updated:Oct 21, 2026

This topic describes columnstore index parameters and supported data types.

Configuration parameters

Parameter

Valid values

Default value

Description

polar_csi.enable_query

on|off

off

Specifies whether query statements can use the columnstore index. Valid values:

  • off (default): Query statements cannot use the columnstore index.

  • on: Query statements can use the columnstore index.

polar_csi.cost_threshold

1~1000000000

50000

When the query cost is lower than this threshold, query statements do not use the columnstore index for acceleration. Adjust the value based on your actual workload.

  • If the value is too high, time-consuming SQL statements cannot use the columnstore index, which results in slower queries.

  • If the value is too low, simple SQL statements use the columnstore index, which reduces system concurrency.

Note
  • You can use EXPLAIN or EXPLAIN ANALYZE to query and analyze the query cost of SQL statements.

  • Oracle syntax compatibility 2.0: In minor engine version 2.0.14.13.28.0 and later, the default value is adjusted to 50000. Before that, the default value is 1000.

polar_csi.max_parallel_workers

1~512

2

The degree of parallelism of the columnstore index, which is the CPU resources that a single SQL statement can use. In general, a higher degree of parallelism provides better performance.

The actual value depends on the cluster resource specifications. Adjust the value based on your cluster specifications. As a best practice, do not exceed the number of CPU cores on the compute node.

Note

polar_csi.max_parallel_workers was named polar_csi.exec_parallel in early engine versions. For older engine versions that do not support polar_csi.max_parallel_workers, use polar_csi.exec_parallel.

  • Oracle syntax compatibility 2.0:

    • For version 2.0.14.20.42.0 and earlier, use polar_csi.exec_parallel.

    • For version 2.0.14.20.43.0 and later, use polar_csi.max_parallel_workers.

polar_csi.memory_limit

1~1048576

4096

The amount of memory that the columnstore index can use. Unit: MB.

A higher memory threshold speeds up index creation. Adjust the value based on your cluster specifications. As a best practice, do not exceed 25% of the cluster memory. Otherwise, out-of-memory (OOM) errors may occur.

Note

Oracle syntax compatibility 2.0: In minor engine version 2.0.14.19.40.0 and later, the default value is adjusted to 4096. Before that, the default value is 1024.

polar_csi.flush_count

2048~20480000

204800

The number of rows committed per batch when an index is created.

Increasing the number of rows improves creation efficiency but also requires more memory.

polar_csi.update_interval

0~3600

1

The interval, in seconds, for periodically updating real-time performance of row-column data.

Increasing the update interval can merge small transactions of the same type, which improves data update efficiency when there are many transactions.

Note

Oracle syntax compatibility 2.0: In minor engine version 2.0.14.13.28.0 and later, this parameter is added to improve the real-time performance of the columnstore index.

polar_csi.update_batch_count

1024~4294967295

100000

The threshold for the number of rows updated in a batch.

The maximum number of rows in a single update transaction. Increasing this threshold improves data update efficiency.

Note

Oracle syntax compatibility 2.0: In minor engine version 2.0.14.13.28.0 and later, this parameter is added to improve the real-time performance of the columnstore index.

polar_csi.forward_replay_wait

on|off

off

columnstore index data query consistency level. Valid values:

  • off: eventual consistency. The columnstore index data may lag behind the rowstore data.

  • on: strong consistency. Queries wait until the columnstore data is replayed to the latest data before execution. When write pressure is high, enabling this parameter may cause long wait times.

polar_csi.forward_replay_wait_lsn_diff

0~INT_MAX

0

The maximum LSN difference allowed for row-column synchronization lag. If the lag exceeds the specified threshold, the columnstore engine is no longer used. Unit: BYTE.

Note
  • This parameter takes effect only when polar_csi.forward_replay_wait is enabled.

  • This parameter is applicable only to the following versions:

    Oracle syntax compatibility 2.0: Minor engine version 2.0.14.19.40.0 and later.

polar_csi.sync_addcolumn

on|off

off

Specifies whether to synchronize Add Column operations to the columnstore index.

Note

This parameter is applicable only to the following versions:

Oracle syntax compatibility 2.0: Minor engine version 2.0.14.19.40.0 and later.

Data types

Category

Data type

Basic data types

BOOLEAN, ARRAY, BIT, and UUID

String and binary types

BPCHAR, CHAR, VARCHAR, TEXT, NAME, and BYTEA

Date and time types

DATE, TIME, TIMESTAMP, TIMESTAMPTZ, and INTERVAL

Numeric types

BIGINT, DECIMAL, DOUBLE PRECISION, FLOAT4, FLOAT8, INTEGER, NUMERIC, REAL, SERIAL, SHORT, and SMALLINT

Composite types

JSON, JSONB, ENUM, BITSTRING, VARCHAR[], and TEXT[]

Note

Oracle syntax compatibility 2.0: In minor engine version 2.0.14.19.40.0 and later, the following data types are added: BITSTRING, VARCHAR[], and TEXT[].