perf(shares): Use smaller chunk size to avoid OOM

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2025-08-04 21:13:11 +02:00
parent 915747bd57
commit 8d01269b3f
No known key found for this signature in database
GPG key ID: F72FA5B49FFA96B0

View file

@ -800,7 +800,7 @@ class RoomShareProvider implements IShareProvider {
/** @var IShare[] $shares */
$shares = [];
$chunks = array_chunk($allRooms, 250);
$chunks = array_chunk($allRooms, 100);
foreach ($chunks as $rooms) {
$qb = $this->dbConnection->getQueryBuilder();
$qb->select('s.*',