spod_duckdb_set_temp: Set temp file for DuckDB connection

View source: R/duckdb-helpers.R

spod_duckdb_set_tempR Documentation

Set temp file for DuckDB connection

Description

Set temp file for DuckDB connection

Usage

spod_duckdb_set_temp(con, temp_path = spod_get_temp_dir())

Arguments

con

A duckdb connection

temp_path

The path to the temp folder for DuckDB for intermediate spilling in case the set memory limit and/or physical memory of the computer is too low to perform the query. By default this is set to the temp directory in the data folder defined by SPANISH_OD_DATA_DIR environment variable. Otherwise, for queries on folders of CSV files or parquet files, the temporary path would be set to the current R working directory, which probably is undesirable, as the current working directory can be on a slow storage, or storage that may have limited space, compared to the data folder.

Value

A duckdb connection.


spanishoddata documentation built on April 12, 2025, 1:24 a.m.