mirror of
https://github.com/nextcloud/spreed.git
synced 2025-12-17 21:12:20 +01:00
perf(shares): Use smaller chunk size to avoid OOM
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
915747bd57
commit
8d01269b3f
1 changed files with 1 additions and 1 deletions
|
|
@ -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.*',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue