Skip to content

Commit

Permalink
Increased chunk
Browse files Browse the repository at this point in the history
Signed-off-by: snipe <[email protected]>
  • Loading branch information
snipe committed Feb 6, 2024
1 parent 3b36372 commit a43183f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/SettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ public function postAlerts(Request $request)
$audit_diff_months = ((int)$request->input('audit_interval') - (int)($setting->audit_interval));

// Grab all assets that have an existing next_audit_date, chunking to handle very large datasets
Asset::whereNotNull('next_audit_date')->chunk(20, function ($assets) use ($audit_diff_months) {
Asset::whereNotNull('next_audit_date')->chunk(200, function ($assets) use ($audit_diff_months) {

// Update assets' next_audit_date values
foreach ($assets as $asset) {
Expand Down

0 comments on commit a43183f

Please sign in to comment.