This topic describes the parameters and data types for columnstore indexes.
Configuration parameters
Parameter | Valid values | Default value | Description |
polar_csi.enable_query | on|off | off | Specifies whether query statements can use columnstore indexes. Valid values:
|
polar_csi.cost_threshold | 1 to 1000000000 | 50000 | If the query cost is less than this threshold, the query statement does not use the columnstore index for acceleration. Adjust the value based on your actual business workload.
Note
|
polar_csi.exec_parallel | 1 to 512 | 2 | The degree of parallelism for the columnstore index. This is the amount of 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 this parameter based on your cluster specifications. The value should not exceed the number of CPU cores on the compute node. |
polar_csi.memory_limit | 1 to 1048576 | 4096 | The amount of memory that the columnstore index can use. Unit: MB. A larger memory threshold results in faster index creation. Adjust this parameter based on your cluster specifications. The value should not exceed 25% of the cluster memory. Otherwise, an out-of-memory (OOM) error may occur. Note
|
polar_csi.flush_count | 2048 to 20480000 | 204800 | The number of rows to commit in a batch when you create an index. Increasing the number of rows can improve creation efficiency but also consumes more memory. |
polar_csi.update_interval | 0 to 3600 | 1 | The interval at which to periodically update the real-time row and column data. Unit: seconds. Increasing the update interval lets you merge small transactions of the same type. This improves data update efficiency when there are many transactions. Note
|
polar_csi.update_batch_count | 1024 to 4294967295 | 100000 | The threshold for the number of rows in a batch update. The maximum number of rows in an update transaction. Increasing this threshold can improve data update efficiency. Note
|
polar_csi.forward_replay_wait | on|off | off | The query consistency level for columnstore index data. Valid values:
|
polar_csi.forward_replay_wait_lsn_diff | 0 to INT_MAX | 0 | The allowed synchronization latency in LSN size between the row store and column store. If the latency exceeds this threshold, the columnstore engine is no longer used. Unit: BYTE. Note
|
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:
|
Data types
Category | Data type |
Basic data types |
|
String and binary types |
|
Date and time types |
|
Numeric types |
|
Composite types |
Note
|