Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,196 of 9,196 pages
About the help in other languages
All help pages

site.ini [DuckDBSettings]

The settings of [DuckDBSettings] in site.ini: Library, AccessMode, LockWait, LockWaitWeb, LockWaitCommandLine, Threads, MemoryLimit, TempDirectory ...

Download as PDF

Address: https://doc.exponential.earth/learninminutes/exphelp/viewer/examples/ini-settings/site/DuckDBSettings.md

On this page

site.ini [DuckDBSettings]

The block [DuckDBSettings] of settings/site.ini, with 10 setting(s).

DuckDB (DatabaseImplementation=duckdb, expDuckDBDB): the whole site in one DuckDB file. Database is the file: a
name is var/storage/duckdb/<name> (".duckdb" added without an extension), an absolute path is used as it is.
PHP reaches DuckDB's C library through the FFI extension (ffi.enable=true for PHP-FPM; the command line also works
with the default ffi.enable=preload). One process writes at a time: see the DuckDB driver documentation.

Never edit settings/site.ini itself: an update replaces it. Put the settings you change in an override, which wins over the shipped file:

  • settings/override/site.ini.append.php for every siteaccess,
  • settings/siteaccess/<siteaccess>/site.ini.append.php for one siteaccess,
  • extension/<extension>/settings/site.ini.append.php in an extension (read when the extension is active).

Library

The C library (libduckdb.so, libduckdb.dylib, duckdb.dll), an absolute path or a name the system's loader finds;
empty: the environment's DUCKDB_LIBRARY, else libduckdb.so (libduckdb.dylib, duckdb.dll)

Default: empty.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[DuckDBSettings]
Library=
*/ ?>

AccessMode

auto: open the file read-only (any number of processes may) and to write only for the first write or transaction
read_write: always to write (one process at a time); read_only: never write (a published copy of a site)

Default: auto.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[DuckDBSettings]
AccessMode=auto
*/ ?>

LockWait

Seconds to wait while another process holds the file; empty: LockWaitWeb in a web request, LockWaitCommandLine else

Default: empty.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[DuckDBSettings]
LockWait=
*/ ?>

LockWaitWeb

Default: 10.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[DuckDBSettings]
LockWaitWeb=10
*/ ?>

LockWaitCommandLine

Default: 120.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[DuckDBSettings]
LockWaitCommandLine=120
*/ ?>

Threads

DuckDB's threads per connection; 0: DuckDB's own choice (the CPUs)

Default: 0.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[DuckDBSettings]
Threads=0
*/ ?>

MemoryLimit

e.g. 512MB; empty: DuckDB's default (80% of the memory)

Default: empty.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[DuckDBSettings]
MemoryLimit=
*/ ?>

TempDirectory

Where DuckDB spills a large sort or join; empty: <database file>.tmp

Default: empty.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[DuckDBSettings]
TempDirectory=
*/ ?>

IntegerDivision

enabled: 7/2 is 3, as in PostgreSQL and MySQL's DIV (DuckDB's own / divides to a DOUBLE)

Default: enabled.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[DuckDBSettings]
IntegerDivision=enabled
*/ ?>

Config

More DuckDB settings for the open, Config[<name>]=<value>

Default: an empty list.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[DuckDBSettings]
# an empty "Config[]" first replaces the shipped list; without it the items are added
Config[]
*/ ?>

Generated by ./console exp:help:examples from settings/site.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x