mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Improve sharing pagination
Basically we did in almost all cases did a query to much. This resulted in an extra query for each share type. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
66a5a45c50
commit
ae1fdf73c2
1 changed files with 5 additions and 0 deletions
|
|
@ -1053,6 +1053,11 @@ class Manager implements IManager {
|
|||
}
|
||||
}
|
||||
|
||||
// If we did not fetch more shares than the limit then there are no more shares
|
||||
if (count($shares) < $limit) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (count($shares2) === $limit) {
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue