Utility, graph and other parameters
These parameters are set in coradb.conf. For how to set them, which ones can be changed while the server runs, and the full list of parameters, see System parameters.
Utility-related parameters
Section titled “Utility-related parameters”The following are parameters related to utilities used in CoraDB. The type and value range for each parameter are as follows:
| Parameter name | Type | Default | Min | Max |
|---|---|---|---|---|
| backup_volume_max_size_bytes | byte | 0 | 32K | |
| communication_histogram | bool | no | ||
| compactdb_page_reclaim_only | int | 0 | ||
| corasql_history_num | int | 50 | 1 | 200 |
backup_volume_max_size_bytes
Section titled “backup_volume_max_size_bytes”backup_volume_max_size_bytes is a parameter to configure the size of the backup volume file created by the coradb backupdb utility in byte unit. You can set a unit as B, K, M, G or T, which stands for bytes, kilobytes(KB), megabytes(MB), gigabytes(GB) or terabytes(TB) respectively. If you omit the unit, bytes will be applied. The default value is 0, and the minimum value is 32K.
If the parameter is configured to 0, which is the default value, the created backup volume is not partitioned; if it is configured to a value greater than 0, the backup volume is partitioned as much as it is specified size.
communication_histogram
Section titled “communication_histogram”communication_histogram is a parameter associated with Session commands ";.h" of the corasql interpreter and the default value is no. For details, see Dumping corasql execution statistics information.
compactdb_page_reclaim_only
Section titled “compactdb_page_reclaim_only”compactdb_page_reclaim_only is a parameter to configure the compactdb utility, which compacts the storage of already deleted objects to reuse OIDs of the already assigned storage. Storage optimization with the compactdb utility can be divided into three steps. The optimization steps can be selected through the compactdb_page_reclaim_only parameter. If the parameter is configured to 0, which is the default value, step 1, 2 and 3 are all performed, so the storage is optimized in data, table and file units. If it is configured to 1, step 1 is skipped to have the storage optimized in table and file units. If it is configured to 2, steps 1 and 2 are skipped to have the storage optimized only in file units.
- Step 1: Optimizes the storage only in data unit.
- Step 2: Optimizes the storage in table unit.
- Step 3: Optimizes the storage in file (heap file) unit.
corasql_history_num
Section titled “corasql_history_num”corasql_history_num is a parameter to configure the corasql interpreter and the number of SQL statements to be stored in the history of the corasql interpreter. The default value is 50.
Other parameters
Section titled “Other parameters”The following are other parameters. The type and value range for each parameter are as follows:
| Parameter name | Type | Default | Min | Max |
|---|---|---|---|---|
| access_ip_control | bool | no | ||
| access_ip_control_file | string | |||
| agg_hash_respect_order | bool | yes | ||
| auto_restart_server | bool | yes | ||
| enable_string_compression | bool | yes | ||
| index_scan_in_oid_order | bool | no | ||
| index_unfill_factor | float | 0.05 | 0 | 0.5 |
| java_stored_procedure | bool | no | ||
| java_stored_procedure_port | int | 0 | 0 | 65535 |
| java_stored_procedure_jvm_options | string | |||
| multi_range_optimization_limit | int | 100 | 0 | 10,000 |
| optimizer_enable_merge_join | bool | no | ||
| use_stat_estimation | bool | no | ||
| pthread_scope_process | bool | yes | ||
| server | string | |||
| service | string | |||
| session_state_timeout | sec | 21,600 (6 hours) | 60(1 minute) | 31,536,000 (1 year) |
| sort_limit_max_count | int | 1000 | 0 | INT_MAX |
| sql_trace_slow | msec | -1(inf) | 0 | 86,400,000 (24 hours) |
| sql_trace_execution_plan | bool | no | ||
| use_orderby_sort_limit | bool | yes | ||
| data_buffer_neighbor_flush_pages | int | 8 | 0 | 32 |
| data_buffer_neighbor_flush_nondirty | bool | no | ||
| tde_keys_file_path | string | NULL | ||
| tde_default_algorithm | string | AES |
access_ip_control
Section titled “access_ip_control”access_ip_control is a parameter to configure whether to use feature limiting the IP addresses that allow server access. The default value is no. For details, see Limiting database server access.
access_ip_control_file
Section titled “access_ip_control_file”access_ip_control_file is a parameter to configure the file name in which the list of IP addresses allowed by servers is stored. If access_ip_control value is set to yes, database server allows the list of IP addresses only stored in the file specified by this parameter. For details, see Limiting database server access.
agg_hash_respect_order
Section titled “agg_hash_respect_order”agg_hash_respect_order is a parameter to configure whether the groups in an aggregate function will be returned ordered or not. The default is yes. As a reference, see max_agg_hash_size.
If all the groups (keys and accumulators) can fit into hash memory, then "agg_hash_respect_order=no" will skip sorting them before writing to output, so it is fair to assume that the order cannot be guaranteed in this case. However, when overflows occur, then a sort step must be performed and you will get the results in-order even with "agg_hash_respect_order=no".
auto_restart_server
Section titled “auto_restart_server”auto_restart_server is a parameter to configure whether to restart the process when it stops due to fatal errors being occurred in database server process. If auto_restart_server value is set to yes, the server process automatically restarts when it has stopped due to errors; it does not restart in case it stops by following normal process (by using STOP command).
enable_string_compression
Section titled “enable_string_compression”enable_string_compression is a parameter to configure whether string compression should be used when storing variable string type value into heap, index or list. If enable_string_compression value is set to yes, and the string is at least 255 bytes in size and the compressed string requires less size than original string, then the string is stored in compressed form.
index_scan_in_oid_order
Section titled “index_scan_in_oid_order”index_scan_in_oid_order is a parameter to configure the result data to be retrieved in OID order after the index scan. If the parameter is set to no, which is the default value, results are retrieved in data order; if it is set to yes, they are retrieved in OID order.
index_unfill_factor
Section titled “index_unfill_factor”If there is no free space because index pages are full when the INSERT or UPDATE operation is executed after the first index is created, the split of index page nodes occurs. This substantially affects the performance by increasing the operation time. index_unfill_factor is a parameter to configure the percent of free space defined for each index page node when an index is created. The index_unfill_factor value is applied only when an index is created for the first time. The percent of free space defined for the page is not maintained dynamically. Its value ranges between 0 and 0.5. The default value is 0.05.
If an index is created without any free space for the index page node (index_unfill_factor is set to 0), the split of index page nodes occurs every time an additional insertion is made. This may degrade the performance.
If the value of index_unfill_factor is large, a large amount of free space is available when an index is created. Therefore, better performance can be obtained because the split of index nodes does not occur for a relatively long period of time until the free space for the nodes is filled after the first index is created.
If this value is small, the amount of free space for the nodes is small when an index is created. Therefore, it is likely that the index nodes are spilt by INSERT or UPDATE because free space for the index nodes is filled in a short period of time.
java_stored_procedure
Section titled “java_stored_procedure”java_stored_procedure is a parameter to configure whether to use Java stored procedures by running the Java Virtual Machine (JVM). If the parameter is set to no, which is the default value, JVM is not executed; if it is set to yes, JVM is executed so you can use Java stored procedures. Therefore, configure the parameter to yes if you plan to use Java stored procedures.
java_stored_procedure_port
Section titled “java_stored_procedure_port”java_stored_procedure_port is a parameter to configure the port number receiving a request that calls the java stored procedures from CAS. the value must be unique and smaller than 65,535. The default value of java_stored_procedure_port is 0 which means the port number is automatically allocated, typically from an ephemeral port range. The value configured in this parameter affects only java_stored_procedure is set to yes. Note that an error occurs if the parameter is configured in [common].
.....[common].....# an error occurs. remove the following line.java_stored_procedure_port=4333.....[@testdb].....# the parameter is configured successfully for testdbjava_stored_procedure_port=4334.....java_stored_procedure_jvm_options
Section titled “java_stored_procedure_jvm_options”java_stored_procedure_jvm_options is a parameter to configure Java Virtual Machine (JVM) and Java options on which Java stored procedures are executed. Each option string should be separated by spaces. For JVM options, there are three types of options; standard, non-standard and advanced options. non-standard and advanced options are not guaranteed to be supported on all VM implementations. The default is an empty string. If the parameter value configured in [@<database>], it overwrites the value specified in [common].
.....[common].....java_stored_procedure_jvm_options="-Xms1024m -Xmx1024m -XX:PermSize=512m -XX:MaxPermSize=512m".....[@testdb].....java_stored_procedure=yes
# Note that -XX:PermSize=512m and -XX:MaxPermSize=512m will not be applied for testdb, Even though they specified in [common] section.java_stored_procedure_jvm_options="-Xms2048m -Xmx2048m".....multi_range_optimization_limit
Section titled “multi_range_optimization_limit”If the number of rows specified by the LIMIT clause in the query, which has multiple ranges (col IN (?, ?, ... ,?)) and is available to use an index, is within the number specified in the multi_range_optimization_limit parameter, the optimization for the way of index sorting will be performed. The default value is 100.
For example, if a value for this parameter is set to 50, LIMIT 10 means that it is within the value specified by this parameter, so that the values that meet the conditions will be sorted to produce the result. If LIMIT is 60, it means that it exceeds the parameter configuration value, so that it gets and sorts out all values that meet the conditions.
Depending on the setting value, the differences are made between collecting the result with on-the-fly sorting of the intermediate values and sorting the result values after collecting them, and the bigger value could make more unfavorable performance.
optimizer_enable_merge_join
Section titled “optimizer_enable_merge_join”optimizer_enable_merge_join is a parameter to specify whether to include sort merge join plan as a candidate of query plans or not. The default is no. Regarding sort merge join, see Using SQL hint.
use_stat_estimation
Section titled “use_stat_estimation”use_stat_estimation is a parameter to specify whether to use the estimated information in calculating statistics or not. The default is no. The estimated information generated by the heap manager while processing DML is associated with the number of added objects. it is relatively accurate for the number of total objects, NOT for the number of distinct values.
pthread_scope_process
Section titled “pthread_scope_process”pthread_scope_process is a parameter to configure the contention scope of threads. It only applies to AIX systems. If the parameter is set to no, the contention scope becomes PTHREAD_SCOPE_SYSTEM; if it is set to yes, it becomes PTHREAD_SCOPE_PROCESS. The default value is yes.
server
Section titled “server”server is a parameter used to register the name of database server process which will run automatically when CoraDB server starts.
service
Section titled “service”service is a parameter to configure process that starts automatically when the CoraDB service starts. There are four types of processes: server, broker, manager. Three processes are usually registered as in service=server,broker,manager.
- If the parameter is set to server, the database process specified by the @server parameter gets started.
- If the parameter is set to broker, the broker process gets started.
- If the parameter is set to manager, the manager process gets started.
session_state_timeout
Section titled “session_state_timeout”session_state_timeout is a parameter used to define how long the CoraDB session data will be kept. The session data will be deleted when the driver terminates the connection or the session time expires. The session time will expire after the specified time if a client terminates abnormally.
Custom variables defined by SET and PREPARE statements can be deleted by DROP / DEALLOCATE statements before session timeout.
The default value is 21,600 seconds(6 hours), and this parameter's unit is second.
sort_limit_max_count
Section titled “sort_limit_max_count”Regarding SORT-LIMIT optimization which can be applied when top-N rows are sorted by "ORDER BY ... LIMIT N" statement, this parameter specifies the LIMIT count to limit applying this optimization. When the value of N is smaller than a value of sort_limit_max_count, SORT-LIMIT optimization is applied. The default is 1000, the minimum is 0(which means that this optimization is disabled), and the maximum is INT_MAX.
For more details, see SORT-LIMIT optimization.
sql_trace_slow
Section titled “sql_trace_slow”sql_trace_slow is a parameter to configure the execution time of a query which will be judged as a long time execution. You can set a unit as ms, s, min or h, which stands for milliseconds, seconds, minutes or hours respectively. If you omit the unit, milliseconds(ms) will be applied. The default value is -1 and the maximum value is 86,400,000 msec (24 hour). -1 means that the infinite time, so any queries will not be judged as a long duration query. For details, see the below sql_trace_execution_plan.
sql_trace_execution_plan
Section titled “sql_trace_execution_plan”sql_trace_execution_plan is a parameter to configure if the query plan of the long running query is written to the log or not. The default value is no.
If it is set to yes, a long running SQL, a query plan and the output of coradb statdump command are written to the server error log file(located on $CORADB/log/server directory) and CAS log file(located on $CORADB/log/broker/sql_log directory) .
If it is set to no, only a long running SQL is written to the server error log file and CAS log file, and this SQL is displayed when you execute coradb statdump command.
For example, if you want to write the execution plan of the slow query to the log file, and specify the query which executes more than 5 seconds as the slow query, then configure the value of the sql_trace_slow parameter as 5000(ms) and configure the value of the sql_trace_execution_plan parameter as yes.
But, on the server error log file, the related information is written only when the value of error_log_level is NOTIFICATION.
use_orderby_sort_limit
Section titled “use_orderby_sort_limit”use_orderby_sort_limit is a parameter to configure whether to keep the intermediate result of sorting and merging process in the statement including the ORDER BY ... LIMIT row_count clause as many as row_count. If it is set to yes, you can decrease unnecessary comparing and merging processes because as many as intermediate results will be kept as the value of row_count. The default value is yes.
vacuum_prefetch_log_mode
Section titled “vacuum_prefetch_log_mode”vacuum_prefetch_log_mode is a parameter to configure the prefetch mode of log pages on behalf of vacuum.
In mode 0, the vacuum master thread prefetch the required log pages in a shared buffer. In mode 1 (default), each vacuum worker prefetches the required log pages in its own buffer. Mode 0 also requires that vacuum_prefetch_log_buffer_size system parameter is configured, in mode 0 this parameter is ignored and each vacuum worker prefetches an entire vacuum log block (default 32 log pages).
vacuum_prefetch_log_buffer_size
Section titled “vacuum_prefetch_log_buffer_size”vacuum_prefetch_log_buffer_size is a parameter to configure the log prefetch buffer size of vacuum (it is used only if vacuum_prefetch_log_mode is set to 0).
data_buffer_neighbor_flush_pages
Section titled “data_buffer_neighbor_flush_pages”data_buffer_neighbor_flush_pages is a parameter to control the number of neighbor pages to be flushed with background flush (victim candidates flushing). When is less or equal to 1, the neighbor flush feature is considered deactivated.
data_buffer_neighbor_flush_nondirty
Section titled “data_buffer_neighbor_flush_nondirty”data_buffer_neighbor_flush_nondirty is a parameter to control the flushing of non-dirty neighbor pages. When victim candidates pages are flushed, and neighbor flush is activated (data_buffer_neighbor_flush_pages is greater than 1), than single non-dirty pages which completes a chain of neighbor (dirty) pages are also flushed.
tde_keys_file_path
Section titled “tde_keys_file_path”tde_keys_file_path is a parameter to configure the path of the key file for TDE. The key file's name is fixed as <database_name>_keys, and the directory where the key file exists is designated. If this system parameter is not set, the key file is searched in the same location as the database volume. For a detailed description of the key file, see File-based master key management.
tde_default_algorithm
Section titled “tde_default_algorithm”tde_default_algorithm is a parameter that configures the default algorithm used when creating the TDE encryption table. Log and temporary data are always encrypted using the algorithm set with this parameter when they have to be encrypted. AES or ARIA can be set. For more information on encryption algorithms, refer to Encryption algorithm.
Graph-related parameters
Section titled “Graph-related parameters”The following are graph-related parameters for configuring graph database operations and performance. The type and value range for each parameter are as follows:
| Parameter name | Type | Default | Min | Max |
|---|---|---|---|---|
| graph_query_rewrite_mode | bool | no | ||
| graph_query_filter_mode | string | NULL | ||
| concurrent_map_erase_threshold | float | 0.7 | 0.0 | 1.0 |
| graph_insert_dml_logging | bool | no | ||
| graph_deferred_load_threads | int | 0 | 0 | 128 |
| graph_edges_container_buckets_count | int | 1,009 | 37 | |
| graph_vertices_container_buckets_count | int | 1,009 | 37 | |
| graph_use_dagger | bool | yes |
graph_query_rewrite_mode
Section titled “graph_query_rewrite_mode”graph_query_rewrite_mode is a parameter to control whether graph query rewriting is enabled. When enabled, the system rewrites SELECT queries that use graph MATCH clauses to optimize them for graph operations. For example, queries like SELECT a,b FROM MATCH ... can be rewritten to SELECT json_graph(a,b) FROM MATCH ... to return results in a graph-optimized format. The default value is no.
Set to yes to enable automatic query rewriting for graph queries. Only nodes and edges are allowed in SELECT clauses when this mode is enabled.
graph_query_filter_mode
Section titled “graph_query_filter_mode”graph_query_filter_mode is a parameter to determine which types of graph elements are included in query results. This parameter filters the output of graph queries to return only vertices, only edges, or both. The default value is NULL (equivalent to "all").
Valid values:
- null or "all" - Output both vertices and edges
- "nodes" or "vertices" - Output only vertices
- "edges" - Output only edges
Set to control the type of graph elements returned by queries. Useful for optimizing queries that only need specific types of graph elements.
concurrent_map_erase_threshold
Section titled “concurrent_map_erase_threshold”concurrent_map_erase_threshold is a parameter to configure the threshold value for concurrent map erase operations in graph data structures. This parameter controls when the system triggers cleanup operations in concurrent hash maps used for storing graph objects. The value represents a ratio or percentage threshold. The default value is 0.7. The allowable range is 0.0 to 1.0.
Used internally by the in-memory objects container for managing concurrent access to graph data structures. Lower values trigger more frequent cleanup, while higher values allow more deleted entries to accumulate before cleanup.
graph_insert_dml_logging
Section titled “graph_insert_dml_logging”graph_insert_dml_logging is a parameter to control whether DML (Data Manipulation Language) operations for graph inserts are logged. When enabled, the system logs detailed information about INSERT operations on graph vertices and edges in the graph topology class. The default value is no.
Enable for debugging or auditing graph insert operations. Keep disabled in production for better performance.
graph_deferred_load_threads
Section titled “graph_deferred_load_threads”graph_deferred_load_threads is a parameter to specify the number of worker threads dedicated to deferred loading of graph data. Deferred loading allows graph elements to be loaded asynchronously, improving query response times for large graphs. When set to 0, deferred loading is disabled. The default value is 0. The allowable range is 0 to 128.
Set to a value greater than 0 to enable parallel deferred loading. The optimal value depends on your hardware (CPU cores) and workload. Start with a small value (e.g., 4-8) and tune based on performance metrics.
graph_edges_container_buckets_count
Section titled “graph_edges_container_buckets_count”graph_edges_container_buckets_count is a parameter to configure the number of buckets in the hash table used for the edges container in shared graph structures. This affects the performance of edge lookups and insertions in the in-memory graph representation. The default value is 1,009. The minimum value is 37.
Higher values reduce hash collisions but use more memory. The default (1,009) is a prime number optimized for balanced distribution. Increase for very large graphs with millions of edges.
graph_vertices_container_buckets_count
Section titled “graph_vertices_container_buckets_count”graph_vertices_container_buckets_count is a parameter to configure the number of buckets in the hash table used for the vertices container in shared graph structures. This affects the performance of vertex lookups and insertions in the in-memory graph representation. The default value is 1,009. The minimum value is 37.
Higher values reduce hash collisions but use more memory. The default (1,009) is a prime number optimized for balanced distribution. Increase for very large graphs with millions of vertices.
graph_use_dagger
Section titled “graph_use_dagger”graph_use_dagger is a parameter to control whether to use the DAGGER algorithm for shortest path computations in graph queries. DAGGER is an optimized algorithm for finding shortest paths in graphs. The default value is yes.
Keep enabled (yes) for optimal shortest path query performance. Disable only for debugging or comparison purposes.