MySQL HeatWave maintains several variables that configure its operation. Variables are set when the MySQL HeatWave Cluster is enabled. Most MySQL HeatWave variable settings are managed by OCI and cannot be modified directly.
-
Command-Line Format --bulk_loader.data_memory_size=#System Variable bulk_loader.data_memory_sizeScope Global Dynamic Yes SET_VARHint AppliesNo Type Integer Default Value (0.125) * #memory GBMinimum Value 67108864Maximum Value 1099511627776Specifies the amount of memory to use for
LOAD DATAwithALGORITHM=BULK, in bytes. See: Section 4.1.2, “Bulk Ingest Data”. -
System Variable bulk_loader.concurrencyScope Global Dynamic Yes SET_VARHint AppliesNo Type Integer Default Value (1/2) * #vcpusMinimum Value 1Maximum Value 1024The maximum number of concurrent threads to use by one LOAD statement with
ALGORITHM=BULK. See: Section 4.1.2, “Bulk Ingest Data”. -
System Variable bulk_loader.chunk_sizeScope Global Dynamic Yes SET_VARHint AppliesNo Type Integer Default Value 4194304Minimum Value 1048576Maximum Value 16777216The queue chunk size in MiB used for reading data from CSV files.
Each thread uses one queue with four elements. Another element is used for data conversion. Total memory requirement by the component is (4 + 1) x
bulk_loader.chunk_sizexbulk_loader.concurrency. The default value is 5 x 16 x 4 MiB = 320 MiB.The above calculation is for a single LOAD operation running with ALGORITHM = BULK. For concurrent execution, you need to multiply the value with the number of LOAD operations running with
ALGORITHM=BULK. See: Section 4.1.2, “Bulk Ingest Data”.
-
lakehouse_filter_warning_codes_listCommand-Line Format --lakehouse_filter_warning_codes_list=codesSystem Variable lakehouse_filter_warning_codes_listScope Session Dynamic Yes SET_VARHint AppliesNo Type String Default Value {6042,6044}Specifies the warning codes for Lakehouse to filter.
-
lakehouse_filter_warning_modes_listCommand-Line Format --lakehouse_filter_warning_modes_list=modesSystem Variable lakehouse_filter_warning_modes_listScope Session Dynamic Yes SET_VARHint AppliesNo Type String Default Value EMPTY_FILES,DUPLICATE_FILES,MISSING_FILES,NULL_COLUMNS,INFER_SKIPPEDValid Values AVRO_FILE_BLOCK_HEADERDUPLICATE_FILESEMPTY_FILESEMPTY_MISSING_COLUMNSINFER_SKIPPEDMISSING_FILESNULL_COLUMNSNUMERIC_PARSINGNUMERIC_TRUNCATIONPARQUET_SCHEMASTRING_PARSINGSTRING_TRUNCATIONTEMPORAL_PARSINGTEMPORAL_TRUNCATIONSpecifies the warning modes for Lakehouse to filter.
-
System Variable rapid_compressionScope Session Dynamic Yes SET_VARHint AppliesNo Type Enumeration Default Value AUTOValid Values ONOFFWhether to enable or disable data compression before loading data into MySQL HeatWave. Data compression is enabled by default. The setting does not affect data that is already loaded. See Section 4.2.3, “Enable or Disable Data Compression”.
The default option is
AUTOwhich automatically chooses the best compression algorithm for each column. -
Command-Line Format --rapid-bootstrap[={OFF|ON|IDLE}]System Variable rapid_bootstrapScope Global Dynamic Yes SET_VARHint AppliesNo Type Enumeration Default Value OFFValid Values IDLESUSPENDONThe setting for this variable is managed by OCI and cannot be modified directly. Defines the MySQL HeatWave Cluster bootstrap state. States include:
-
OFFThe MySQL HeatWave Cluster is not bootstrapped (not initialized).
-
IDLEThe MySQL HeatWave Cluster is idle (stopped).
-
SUSPENDEDThe MySQL HeatWave Cluster is suspended. The
SUSPENDEDstate is a transition state betweenIDLEandONthat facilitates planned restarts of the MySQL HeatWave Cluster. -
ONThe MySQL HeatWave Cluster is bootstrapped (started).
-
-
Command-Line Format --rapid-dmem-size=#System Variable rapid_dmem_sizeScope Global Dynamic Yes SET_VARHint AppliesNo Type Integer Default Value 2048Minimum Value 512Maximum Value 2097152The setting for this variable is managed by OCI and cannot be modified directly. Specifies the amount of DMEM available on each core of each node, in bytes.
-
Command-Line Format --rapid-memory-heap-size=#System Variable rapid_memory_heap_sizeScope Global Dynamic Yes SET_VARHint AppliesNo Type Integer Default Value unlimitedMinimum Value 67108864Maximum Value unlimitedThe setting for this variable is managed by OCI and cannot be modified directly. Defines the amount of memory available for the MySQL HeatWave plugin, in bytes. Ensures that MySQL HeatWave does not use more memory than is allocated to it.
-
Command-Line Format --rapid_execution_strategy[={MIN_RUNTIME|MIN_MEM_CONSUMPTION}]System Variable rapid_execution_strategyScope Session Dynamic No SET_VARHint AppliesNo Type Enumeration Default Value MIN_RUNTIMEValid Values MIN_RUNTIMEMIN_MEM_CONSUMPTIONSpecifies the query execution strategy to use. Minimum runtime (
MIN_RUNTIME) or minimum memory consumption (MIN_MEM_CONSUMPTION).MySQL HeatWave optimizes for network usage rather than memory. If you encounter out of memory errors when running a query, try running the query with the
MIN_MEM_CONSUMPTIONstrategy by setting by settingrapid_execution_strategyprior to executing the query:SET SESSION rapid_execution_strategy = MIN_MEM_CONSUMPTION; -
Command-Line Format --rapid-stats-cache-max-entries=#System Variable rapid_stats_cache_max_entriesScope Global Dynamic Yes SET_VARHint AppliesNo Type Integer Default Value 65536Minimum Value 0Maximum Value 1048576The setting for this variable is managed by OCI and cannot be modified directly. Specifies the maximum number of entries in the statistics cache.
The number of entries permitted in the statistics cache by default is 65536, which is enough to store statistics for 4000 to 5000 unique queries of medium complexity.
For more information, see Section 5.4.12, “Auto Query Plan Improvement”.
-
Command-Line Format --rapid-ml-genai=#System Variable rapid_ml_genaiScope Session Dynamic No SET_VARHint AppliesNo Type String Default Value Compartment ID of the DB system currently in useThe setting for this variable is managed by OCI and cannot be modified directly. To use the OCI Generative AI Service with MySQL HeatWave GenAI, MySQL HeatWave automatically sets this system variable for resource principal authentication. The default value of the variable is the compartment ID of the database system currently in use.
-
Command-Line Format --rapid-ml-genai-session=#System Variable rapid_ml_genai_sessionScope Session Dynamic Yes SET_VARHint AppliesNo Type String Default Value Compartment ID of the DB system currently in useSpecifies the ID of the compartment you want to use for accessing the OCI Generative AI service. If you do not want to use the compartment ID of the DB system currently in use for accessing the OCI Generative AI service, then you can set this system variable to specify the ID of the compartment you want to use.
-
Command-Line Format --rapid-enable-my-sc=#System Variable rapid_enable_my_scScope Session Dynamic Yes SET_VARHint AppliesNo Type Enumeration Default Value ONValid Values ONOFFAs of MySQL 9.4.1, controls whether statistics feedback from the
InnoDBexecution engine is used to improve query plans, particularly for queries with two or more joins and high MySQL costs. By injecting actual statistics from previous query executions into subsequent optimizations, MySQL HeatWave can produce more accurate and efficient plans, leading to significant performance improvements. -
rapid_ap_stats_cache_max_entriesCommand-Line Format --rapid-ap-stats-cache-max-entries=#System Variable rapid_ap_stats_cache_max_entriesScope Global Dynamic Yes SET_VARHint AppliesNo Type Integer Default Value 65536Minimum Value 0Maximum Value 1048576As of MySQL 9.4.1, controls the size of the HashMap used to control statistics feedback. Setting to
0disables statistics feedback. Lower values imply fewer statistics cached for feedback. -
System Variable rapid_hnsw_ef_searchScope Global Dynamic Yes SET_VARHint AppliesNo Type Integer Default Value 40Minimum Value 0Maximum Value 50000As of MySQL 9.5.0, controls the accuracy of query results using the vector index. To disable the usage of HNSW indexes, you can set this session variable to
0. -
rapid_hnsw_use_adaptive_accuracy_estimationSystem Variable rapid_hnsw_use_adaptive_accuracy_estimationScope Global Dynamic Yes SET_VARHint AppliesNo Type Enumeration Default Value ONValid Values ONOFFAs of MySQL 9.5.0, controls adaptive accuracy estimation for similarity search queries that use the vector indexes.
-
rapid_auto_vector_index_enabledSystem Variable rapid_auto_vector_index_enabledScope Global Dynamic Yes SET_VARHint AppliesNo Type Enumeration Default Value ONValid Values ONOFFAs of MySQL 9.5.0, controls automatic vector index creation for frequently queried vector store columns. If disabled, all automatically created indexes are removed and no more automatic index creation happens until this variable is enabled.
-
rapid_auto_vector_index_interval_secondsSystem Variable rapid_auto_vector_index_interval_secondsScope Global Dynamic Yes SET_VARHint AppliesNo Type Integer Default Value 86400Minimum Value 30Maximum Value 604800As of MySQL 9.5.0, specifies the time interval, in seconds, for automatically creating the vector indexes for frequently queried vector store columns.
-
rapid_auto_vector_index_server_memory_quota_pctSystem Variable rapid_auto_vector_index_server_memory_quota_pctScope Global Dynamic Yes SET_VARHint AppliesNo Type Integer Default Value 20Minimum Value 0Maximum Value 100As of MySQL 9.5.0, specifies the maximum memory percentage that can be used by created indexes. Less beneficial indexes are removed if memory limits are exceeded, making space for more beneficial indexes.
-
rapid_auto_vector_index_skip_quiet_checkSystem Variable rapid_auto_vector_index_skip_quiet_checkScope Global Dynamic Yes SET_VARHint AppliesNo Type Enumeration Default Value OFFValid Values ONOFFAs of MySQL 9.5.0, controls whether MySQL HeatWave checks if the system is quiet before automatic vector index creation is started.
A quit system is:
When mo tables have been queried in MySQL HeatWave within the past 5 minutes.
When no ongoing table is loading into MySQL HeatWave.
There is no lag in change propagation.
If the system is not found to be quiet, MySQL HeatWave holds automatic index creation for 300 seconds and checks up to 10 times before skipping until the next interval.
This variable cannot be modified when RAPID is not bootstrapped.
-
rapid_auto_vector_index_build_timeout_secondsSystem Variable rapid_auto_vector_index_build_timeout_secondsScope Global Dynamic Yes SET_VARHint AppliesNo Type Integer Default Value 3600Minimum Value 1Maximum Value 43200As of MySQL 9.5.0, specifies the timeout duration, in seconds, for automatic vector index creation.
This variable cannot be modified when RAPID is not bootstrapped.
-
secondary_engine_cost_thresholdSystem Variable secondary_engine_cost_thresholdScope Session Dynamic Yes SET_VARHint AppliesYes Type Numeric Default Value 100000.000000Minimum Value 0Maximum Value DBL_MAX (maximum double value)Defines the cost estimate threshold for offloading queries to the secondary engine. A query with a cost estimate on the primary engine that is higher than the threshold value is considered for execution on the secondary engine.
-
show_create_table_skip_secondary_engineCommand-Line Format --show-create-table-skip-secondary-engine[={OFF|ON}]System Variable show_create_table_skip_secondary_engineScope Session Dynamic Yes SET_VARHint AppliesYes Type Boolean Default Value OFFWhether to exclude the
SECONDARY ENGINEclause fromSHOW CREATE TABLEoutput, and fromCREATE TABLEstatements dumped by the mysqldump utility.mysqldump provides the
--show-create-skip-secondary-engineoption. When specified, it enables theshow_create_table_skip_secondary_enginesystem variable for the duration of the dump operation. -
System Variable use_secondary_engineScope Session Dynamic Yes SET_VARHint AppliesYes Type Enumeration Default Value ONValid Values OFFONFORCEDWhether to execute queries using the secondary engine. These values are permitted:
OFF: Queries execute using the primary storage (InnoDB) on the MySQL DB System. Execution using the secondary engine (RAPID) is disabled.ON: Queries execute using the secondary engine (RAPID) when conditions warrant, falling back to the primary storage engine (InnoDB) otherwise. In the case of fallback to the primary engine, whenever that occurs during statement processing, the attempt to use the secondary engine is abandoned and execution is attempted using the primary engine.FORCED: Queries always execute using the secondary engine (RAPID) or fail if that is not possible. Under this mode, a query returns an error if it cannot be executed using the secondary engine, regardless of whether the tables that are accessed have a secondary engine defined.
-
Command-Line Format --external_table_storage_engine=textSystem Variable external_table_storage_engineScope Global, Session Dynamic Yes SET_VARHint AppliesNo Type String Default Value LAKEHOUSEDetermines which engines are used for external tables.
-
Command-Line Format --rapid_ml_concurrency=#System Variable rapid_ml_concurrencyScope Global Dynamic Yes SET_VARHint AppliesNo Type Integer Default Value 8Minimum Value 1Maximum Value 8Allows concurrent query processing for MySQL HeatWave AutoML and MySQL HeatWave GenAI as of MySQL 9.4.1. It can have a value between
1and8. The default value is8. A value over1allows for concurrent query processing.We recommend not enabling concurrent query processing with the following DB System shapes:
HeatWave.Free
HeatWave.32GB
-
System Variable rapid_ace_auto_train_enabledScope Global Dynamic Yes SET_VARHint AppliesNo Type Boolean Default Value ONAs of MySQL 9.4.2, enables or disables Advanced Cardinality Estimation (ACE) auto-training, which periodically runs in the background and manages rebuilding stale ACE models for loaded tables. See Analyze Tables.
-
rapid_ace_auto_train_interval_secondsSystem Variable rapid_ace_auto_train_interval_secondsScope Global Dynamic Yes SET_VARHint AppliesNo Type Integer Default Value 3600Minimum Value 60Maximum Value 86400As of MySQL 9.4.2, determines the time (in seconds) between runs of ACE auto-training. See Analyze Tables.
-
rapid_ace_auto_train_max_execution_secondsSystem Variable rapid_ace_auto_train_max_execution_secondsScope Global Dynamic Yes SET_VARHint AppliesNo Type Integer Default Value 180Minimum Value 30Maximum Value 1800As of MySQL 9.4.2, determines the maximum amount of time in seconds ACE auto-training runs before stopping and completing early. See Analyze Tables.