From 354dfb36c9076f1b1fe28aacbb374ce39253c774 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Storage/DbalNestedSetSchema.php b/src/Storage/DbalNestedSetSchema.php index d8e57b66..c10a4cf6 100644 --- a/src/Storage/DbalNestedSetSchema.php +++ b/src/Storage/DbalNestedSetSchema.php @@ -26,6 +26,8 @@ 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']); + $tree->addIndex(['depth']); foreach ($schema->toSql($this->connection->getDatabasePlatform()) as $sql) { $this->connection->exec($sql);