You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to define the import to have a limit and a start row but when i define the limit it should be taken the same logic in
the creation of the ReadChunk jobs and the one from the ModelImporter
But the logic for that limit in the ModelImporter, more specific in the EndRowFinder it is :
`if (!$import instanceof WithLimit) {
return null;
}
$limit = $import->limit();
if ($limit > $highestRow) {
return null;
}
// When no start row given,
// use the first row as start row.
$startRow = $startRow ?? 1;
// Subtract 1 row from the start row, so a limit
// of 1 row, will have the same start and end row.
return ($startRow - 1) + $limit;`
Here to the start row it is adding the limit.
So if i have the start row 2000 and the limit 3000. The total rows will be in the ReadChunk 3000 but in the EndRowFinder will be 5000.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I wanted to define the import to have a limit and a start row but when i define the limit it should be taken the same logic in
the creation of the ReadChunk jobs and the one from the ModelImporter
In ReadChunk the logic it is:
But the logic for that limit in the ModelImporter, more specific in the EndRowFinder it is :
Here to the start row it is adding the limit.
So if i have the start row 2000 and the limit 3000. The total rows will be in the ReadChunk 3000 but in the EndRowFinder will be 5000.
What can i do ?
Beta Was this translation helpful? Give feedback.
All reactions