Set the number of threads used by DVS operations
Description
Section titled “Description”Controls the thread pool size for parallel file operations (add, get, status).
The value is stored as the dvs.num_threads option and synced to the
Rust backend before each operation.
Details
Section titled “Details”Can also be set via .Rprofile or temporarily with withr::with_options().
set_dvs_threads(threads)Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
threads | Integer number of threads to use. Set to NULL to revert to the default (automatic detection). |
The previous value of dvs.num_threads (invisibly).
Examples
Section titled “Examples”# Not run:set_dvs_threads(4)
# Temporarily use 2 threadswithr::with_options(list(dvs.num_threads = 2), { dvs_add(files = "big_data.csv")})