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 f0902db + 66898f8 commit 8d2502aCopy full SHA for 8d2502a
lib/private/Files/Cache/Cache.php
@@ -623,6 +623,9 @@ private function removeChildren(ICacheEntry $entry) {
623
$query->delete('filecache')
624
->whereParentInParameter('parentIds');
625
626
+ // Sorting before chunking allows the db to find the entries close to each
627
+ // other in the index
628
+ sort($parentIds, SORT_NUMERIC);
629
foreach (array_chunk($parentIds, 1000) as $parentIdChunk) {
630
$query->setParameter('parentIds', $parentIdChunk, IQueryBuilder::PARAM_INT_ARRAY);
631
$query->execute();
0 commit comments