From 5f6e23166a57733697b70f512b485f506158685f Mon Sep 17 00:00:00 2001 From: Jakub Onderka Date: Sun, 31 Mar 2024 09:40:10 +0200 Subject: [PATCH] fixup! chg: [sync] Reduce chunk size when fetching sightings to solve HTTP timeouts --- app/Model/Sighting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Model/Sighting.php b/app/Model/Sighting.php index bdb4e9e5c66..15cf0fd5ac6 100644 --- a/app/Model/Sighting.php +++ b/app/Model/Sighting.php @@ -1442,7 +1442,7 @@ private function pullSightingNewWay(array $user, array $eventUuids, ServerSyncTo shuffle($uuids); // shuffle array to avoid keeping events with a lof ot sightings in same batch all the time $saved = 0; $savedEventUuids = []; - foreach (array_chunk($uuids, 50) as $chunk) { + foreach (array_chunk($uuids, 25) as $chunk) { try { $sightings = $serverSync->fetchSightingsForEvents($chunk); } catch (Exception $e) {