10 use Magento\Framework\Db\Select;
20 private $batchSize = 30000;
25 private $baseBatchSize;
30 private $resourceConnection;
39 $baseBatchSize = 30000
41 $this->baseBatchSize = $baseBatchSize;
57 $select->limit($this->batchSize,
$page * $this->batchSize);
58 $adapter = $this->resourceConnection->getConnection($connectionName);
62 while (count(
$data)) {
64 $select->limit($this->batchSize,
$page * $this->batchSize + 1);
generator(Select $select, $connectionName)
__construct(ResourceConnection $resourceConnection, $baseBatchSize=30000)