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

site.ini [DuckDBSettings]

Die Einstellungen von [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

This page is a translation. Read the English original

site.ini [DuckDBSettings]

Der Block [DuckDBSettings] von settings/site.ini, mit 10 Einstellung(en).

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.

Bearbeiten Sie settings/site.ini nie selbst: Ein Update ersetzt die Datei. Schreiben Sie die Einstellungen, die Sie ändern, in ein Override, das Vorrang vor der ausgelieferten Datei hat:

  • settings/override/site.ini.append.php für jeden Siteaccess,
  • settings/siteaccess/<siteaccess>/site.ini.append.php für einen Siteaccess,
  • extension/<extension>/settings/site.ini.append.php in einer Erweiterung (gelesen, wenn die Erweiterung aktiv ist).

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)

Standard: leer.

<?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)

Standard: 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

Standard: leer.

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

LockWaitWeb

Standard: 10.

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

LockWaitCommandLine

Standard: 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)

Standard: 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)

Standard: leer.

<?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

Standard: leer.

<?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)

Standard: 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>

Standard: eine leere Liste.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[DuckDBSettings]
# ein leeres "Config[]" zuerst ersetzt die ausgelieferte Liste; ohne es werden die Einträge hinzugefügt
Config[]
*/ ?>

Siehe auch


Erzeugt von ./console exp:help:examples --language=ger-de aus settings/site.ini. Bearbeiten Sie diese Seite nicht: Ändern Sie die Quelle oder die deutsche Übersetzung und erzeugen Sie sie neu (wie). Freie Dokumentation: GFDL 1.3 oder später.

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