Commit 424a6405 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 dcf7796a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();