add column unique numbering scheme, more efficient selects
This commit is contained in:
@@ -128,14 +128,13 @@ abstract class BaseExporter
|
||||
|
||||
$start = 0;
|
||||
while ($start < $count) {
|
||||
$rows = $revision->rows()->offset($start)->limit($chunkSize)->get();
|
||||
// TODO raw query to allow selecting aggregates, column subsets, etc
|
||||
$rows = $revision->rowsData($this->columns, false)
|
||||
->offset($start)->limit($chunkSize)->get()->toArray();
|
||||
|
||||
foreach ($rows as $row) {
|
||||
$data = $row->data;
|
||||
|
||||
// column renaming, value formatting...
|
||||
|
||||
yield $data;
|
||||
unset($row['_row_pivot']);
|
||||
yield $row;
|
||||
}
|
||||
|
||||
$start += $chunkSize;
|
||||
|
||||
Reference in New Issue
Block a user