fix getusertorrentlistajax hr

This commit is contained in:
xiaomlove
2022-03-10 21:45:23 +08:00
parent 40e36b715a
commit f0ced9cdf9
9 changed files with 113 additions and 39 deletions

View File

@@ -40,7 +40,7 @@ class AttendanceCleanup extends Command
{
$query = Attendance::query()->groupBy('uid')->selectRaw('uid, max(id) as max_id');
$page = 1;
$size = 1000;
$size = 10000;
while (true) {
$rows = $query->forPage($page, $size)->get();
$log = "sql: " . last_query() . ", count: " . $rows->count();