Skip to content

Commit 2f6af10

Browse files
committed
Bumped chunk for custom report
Signed-off-by: snipe <[email protected]>
1 parent afabda9 commit 2f6af10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/ReportsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ public function postActivityReport(Request $request) : StreamedResponse
266266

267267
$actionlogs = Actionlog::with('item', 'user', 'target', 'location', 'adminuser')
268268
->orderBy('created_at', 'DESC')
269-
->chunk(20, function ($actionlogs) use ($handle) {
269+
->chunk(500, function ($actionlogs) use ($handle) {
270270
$executionTime = microtime(true) - $_SERVER['REQUEST_TIME_FLOAT'];
271271
Log::debug('Walking results: '.$executionTime);
272272
$count = 0;

0 commit comments

Comments
 (0)