| ddbs_set_resources | R Documentation |
Configure technical system settings for a DuckDB connection, such as memory limits and CPU threads.
ddbs_set_resources(conn, threads = NULL, memory_limit_gb = NULL)
ddbs_get_resources(conn)
conn |
A |
threads |
Integer. Number of threads to use. If |
memory_limit_gb |
Numeric. Memory limit in GB. If |
For ddbs_set_resources(), invisibly returns a list containing the current system settings; for ddbs_get_resources(), visibly returns the same list for direct inspection.
## Not run:
# Create a connection
conn <- ddbs_create_conn()
# Set resources: 1 thread and 4GB
ddbs_set_resources(conn, threads = 1, memory_limit_gb = 4)
# Check current settings
ddbs_get_resources(conn)
ddbs_stop_conn(conn)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.