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:
|
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.
Note
|
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.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:
|
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
|
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 |
|
String and binary types |
|
Date and time types |
|
Numeric types |
|
Composite types |
Note Oracle syntax compatibility 2.0: In minor engine version 2.0.14.19.40.0 and later, the following data types are added: |