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
|
@ -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 New Issue