spod_duckdb_limit_resources {spanishoddata} | R Documentation |
Set maximum memory and number of threads for a DuckDB
connection
Description
Set maximum memory and number of threads for a DuckDB
connection
Usage
spod_duckdb_limit_resources(
con,
max_mem_gb = NULL,
max_n_cpu = max(1, parallelly::availableCores() - 1)
)
Arguments
con |
A |
max_mem_gb |
|
max_n_cpu |
The maximum number of threads to use. Defaults to the number of available cores minus 1. |
Value
A duckdb
connection.
[Package spanishoddata version 0.2.0 Index]