View source: R/duckdb-helpers.R
spod_duckdb_limit_resources | R Documentation |
DuckDB
connectionSet maximum memory and number of threads for a DuckDB
connection
spod_duckdb_limit_resources(
con,
max_mem_gb = max(4, spod_available_ram() - 4),
max_n_cpu = max(1, parallelly::availableCores() - 1)
)
con |
A |
max_mem_gb |
The maximum memory to use in GB. A conservative default is 3 GB, which should be enough for resaving the data to |
max_n_cpu |
The maximum number of threads to use. Defaults to the number of available cores minus 1. |
A duckdb
connection.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.