Number of partitions for MDF datastore
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.
Find Recommended Number of Partitions for MDF Datastore
Determine the number of partitions you should use for your MDF datastore.
mdfds = mdfDatastore("C:\myMDFData\CANape.MF4");
N = numpartitions(mdfds);
mdfds — MDF datastore
MDF datastore object
MDF datastore, specified as an MDF datastore object.
pool — Parallel pool
parallel pool object
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
Introduced in R2017b