Skip to content

Commit

Permalink
Add revision_id index for certain joins, drupal.org/node/3211894/edit. (
Browse files Browse the repository at this point in the history
  • Loading branch information
simesy authored Jun 22, 2021
1 parent 4e0d531 commit e873271
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Storage/DbalNestedSetSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public function create() {
$tree->addColumn("depth", "integer", ["unsigned" => TRUE]);

$tree->setPrimaryKey(['id', 'revision_id']);
$tree->addIndex(['revision_id']);
$tree->addIndex(['id', 'revision_id', 'left_pos', 'right_pos', 'depth']);
$tree->addIndex(['left_pos', 'right_pos']);
$tree->addIndex(['right_pos']);
Expand Down

0 comments on commit e873271

Please sign in to comment.