Skip to content
Snippets Groups Projects
Commit 80d83864 authored by catch's avatar catch
Browse files

Issue #3351113 by a.milkovsky, mostepaniukvm, daffie: Not optimal query in...

Issue #3351113 by a.milkovsky, mostepaniukvm, daffie: Not optimal query in DatabaseBackend::garbageCollection()

(cherry picked from commit 5a53a638)
parent 02cfa3c7
No related branches found
No related tags found
5 merge requests!8506Draft: Issue #3456536 by ibrahim tameme,!5646Issue #3350972 by nod_: [random test failure]...,!5600Issue #3350972 by nod_: [random test failure]...,!5343Issue #3305066 by quietone, Rename RedirectLeadingSlashesSubscriber,!3603#ISSUE 3346218 Add a different message on edit comment
......@@ -370,7 +370,7 @@ public function garbageCollection() {
$first_invalid_create_time = $this->connection->select($this->bin)
->fields($this->bin, ['created'])
->orderBy("{$this->bin}.created", 'DESC')
->range($this->maxRows, $this->maxRows + 1)
->range($this->maxRows, 1)
->execute()
->fetchField();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment