Automattic\WooCommerce\Internal\Admin
OrderTaxLookupMigrator::get_default_batch_size
Default (preferred) batch size to pass to 'get_next_batch_to_process'.
A batch is a wc_get_order() a handful of writes per order, so it is sized like the analytics order importer rather than like a single-query migration.
Method of the class: OrderTaxLookupMigrator{}
No Hooks.
Returns
int. Default batch size.
Usage
$OrderTaxLookupMigrator = new OrderTaxLookupMigrator(); $OrderTaxLookupMigrator->get_default_batch_size(): int;
OrderTaxLookupMigrator::get_default_batch_size() OrderTaxLookupMigrator::get default batch size code WC 11.3.0
public function get_default_batch_size(): int {
return 100;
}