Skip to content
Blog

Configuration

The configuration of a Kùzu database or a connection to the database can be changed through a standalone CALL statement, described in this section. Different from the CALL clause, this statement of changing configuration cannot be used with other query clauses, such as RETURN.

Connection configuration

OptionDescriptionDefault
THREADSnumber of threads used by executionsystem maximum threads
TIMEOUTtimeout of query execution in msN/A
VAR_LENGTH_EXTEND_MAX_DEPTHmaximum depth of recursive extend30
ENABLE_SEMI_MASKenables the semi mask optimizationtrue
HOME_DIRECTORYsystem home directoryuser home directory
FILE_SEARCH_PATHfile search pathN/A
PROGRESS_BARenable progress bar in CLIfalse
PROGRESS_BAR_TIMEshow progress bar after time in ms1000
CHECKPOINT_THRESHOLDthe WAL size threshold in bytes at which to automatically trigger a checkpoint16777216 (16MB)

Database configuration

OptionDescriptionDefault
CHECKPOINT_THRESHOLDthe WAL size threshold at which to automatically trigger a checkpoint16777216

Configure execution threads

CALL THREADS=5;

Configure query timeout

CALL TIMEOUT=3000;

Configure maximum depth of recursive extend

CALL var_length_extend_max_depth=10;

Configure semi-mask optimization

CALL enable_semi_mask=false;

Configure home directory

CALL home_directory='/kuzu';

Configure file search path

CALL file_search_path='/kuzu/file';

Configure progress bar

CALL progress_bar=true;

Configure checkpoint threshold

CALL checkpoint_threshold=16777216;