Blueprints Blog Contact About

settings.sql

Execution settings — how the runtime uses DuckDB

Phase: Pre-catalog | Order: 1 | Required: No

OndatraSQL runs directly on DuckDB. This file controls how the runtime executes queries — memory usage, parallelism, and disk spill behavior.

You usually don’t need to change this. Defaults work for most cases.

-- Limit how much memory the runtime can use
SET memory_limit = '8GB';

-- Control parallel execution
SET threads = 4;

-- Where to spill when memory is exceeded
SET temp_directory = '/tmp/duckdb';

-- Timestamp interpretation
SET TimeZone = 'Europe/Stockholm';

This file runs before the DuckLake catalog is attached.

Common Settings

Most projects never change these. Adjust only if needed.

SettingWhat it controlsWhen to change
memory_limitMax memory used by the runtimeLarge datasets or limited RAM
threadsParallel executionLimit CPU on shared machines
temp_directoryDisk spill locationSlow disks or constrained environments
TimeZoneTimestamp interpretationWorking across regions

For advanced tuning, see the DuckDB configuration reference.