diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-08-16 11:13:23 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-08-16 11:13:23 +0200 |
commit | 219bcd294d5e664bfb9d20448586faae67027722 (patch) | |
tree | 484e45d01e48c899f4587795c5585f23fedf07a5 /lib/Share | |
parent | 754c3574e13f3b0b2ba9b1d57b07fc3b5bc0b7ea (diff) |
Use bigger slice
This reduce the number of queries considerably. For me on the production
instance I went from 120 queries to 103 queries on the activity page.
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'lib/Share')
-rw-r--r-- | lib/Share/RoomShareProvider.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Share/RoomShareProvider.php b/lib/Share/RoomShareProvider.php index 0494fc00c..b34209d99 100644 --- a/lib/Share/RoomShareProvider.php +++ b/lib/Share/RoomShareProvider.php @@ -681,8 +681,8 @@ class RoomShareProvider implements IShareProvider { $start = 0; while (true) { /** @var IShare[] $shareSlice */ - $shareSlice = array_slice($shares, $start, 100); - $start += 100; + $shareSlice = array_slice($shares, $start, 1000); + $start += 1000; if ($shareSlice === []) { break; |