Number of partitions for MDF datastore
N = numpartitions(mdfds)
N = numpartitions(mdfds,pool)
returns a reasonable number of partitions to parallelize
N = numpartitions(
over the parallel pool,
pool, based on the number of files in the
datastore and the number of workers in the pool.
Determine the number of partitions you should use for your MDF datastore.
mdfds = mdfDatastore(fullfile(matlabroot,'examples','vnt','CANape.MF4')); N = numpartitions(mdfds);
mdfds— MDF datastore
MDF datastore, specified as an MDF datastore object.
pool— Parallel pool
Parallel pool specified as a parallel pool object.
N— Number of partitions
Number of partitions, returned as a double. This number is the calculated
recommendation for the number of partitions for your MDF datastore. Use this
when partitioning your datastore with the