Skip to content

Commit 04452b6

Browse files
authored
Improved data records pagination in the large datasets
1 parent 0201f03 commit 04452b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Anonymizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function getCount(Model $model): int
6060

6161
public function getChunk(Model $model, callable $call): bool
6262
{
63-
return $this->getQuery($model)->chunk(
63+
return $this->getQuery($model)->chunkById(
6464
config('anonymizer.chunk_size', 1000),
6565
$call
6666
);
@@ -78,4 +78,4 @@ public function changeData(Model $model): bool
7878
$model->anonymizableAttributes($this->faker)
7979
);
8080
}
81-
}
81+
}

0 commit comments

Comments
 (0)