numpartitions
Return estimate for reasonable number of partitions for parallel processing
Description
returns a reasonable number of partitions to parallelize n
= numpartitions(sds
,pool
)sds
over the
parallel pool.
If
sds
contains file data, the number of partitions depends on the number of workers in the pool and the total number of files.If
sds
contains in-memory data, the number of partitions depends on the number of workers in the pool and the total number of members.
To parallelize datastore access, you must have Parallel Computing Toolbox™ installed.