From bee422295f5f7fdc1dbe6484adedb696c9df8b16 Mon Sep 17 00:00:00 2001 From: Lee Rowlands Date: Tue, 30 May 2017 16:04:20 +1000 Subject: [PATCH] Adds more indexes --- src/Storage/DbalNestedSetSchema.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Storage/DbalNestedSetSchema.php b/src/Storage/DbalNestedSetSchema.php index d8e57b66..48d22670 100644 --- a/src/Storage/DbalNestedSetSchema.php +++ b/src/Storage/DbalNestedSetSchema.php @@ -26,6 +26,7 @@ public function create() { $tree->addIndex(['id', 'revision_id', 'left_pos', 'right_pos', 'depth']); $tree->addIndex(['left_pos', 'right_pos']); $tree->addIndex(['right_pos']); + $tree->addIndex(['left_pos']); foreach ($schema->toSql($this->connection->getDatabasePlatform()) as $sql) { $this->connection->exec($sql);