We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0af06f6 + f3d6309 commit 6258823Copy full SHA for 6258823
lib/private/Files/Cache/Cache.php
@@ -620,6 +620,9 @@ private function removeChildren(ICacheEntry $entry) {
620
$query->delete('filecache')
621
->whereParentInParameter('parentIds');
622
623
+ // Sorting before chunking allows the db to find the entries close to each
624
+ // other in the index
625
+ sort($parentIds, SORT_NUMERIC);
626
foreach (array_chunk($parentIds, 1000) as $parentIdChunk) {
627
$query->setParameter('parentIds', $parentIdChunk, IQueryBuilder::PARAM_INT_ARRAY);
628
$query->execute();
0 commit comments