Skip to content

Set the number of threads used by DVS operations

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.

Can also be set via .Rprofile or temporarily with withr::with_options().

set_dvs_threads(threads)
ArgumentDescription
threadsInteger number of threads to use. Set to NULL to revert to the default (automatic detection).

The previous value of dvs.num_threads (invisibly).

# Not run:
set_dvs_threads(4)
# Temporarily use 2 threads
withr::with_options(list(dvs.num_threads = 2), {
dvs_add(files = "big_data.csv")
})