Removed loading and reduced chunking to 10

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-03-13 17:12:51 -07:00
parent a2667a7520
commit 1b9c3c93ad

View file

@ -23,7 +23,7 @@ class AddEolDateOnAssetsTable extends Migration
});
// Chunk the model query to get the models that do have an EOL date
AssetModel::whereNotNull('eol')->with('assets')->chunk(200, function ($models) {
AssetModel::whereNotNull('eol')->chunk(10, function ($models) {
foreach ($models as $model) {
foreach ($model->assets as $asset) {