diff --git a/Neos.ContentGraph.DoctrineDbalAdapter/src/DoctrineDbalContentGraphSchemaBuilder.php b/Neos.ContentGraph.DoctrineDbalAdapter/src/DoctrineDbalContentGraphSchemaBuilder.php index 1a31b800538..0b54a967a39 100644 --- a/Neos.ContentGraph.DoctrineDbalAdapter/src/DoctrineDbalContentGraphSchemaBuilder.php +++ b/Neos.ContentGraph.DoctrineDbalAdapter/src/DoctrineDbalContentGraphSchemaBuilder.php @@ -77,7 +77,8 @@ private function createHierarchyRelationTable(): Table ->addIndex(['childnodeanchor']) ->addIndex(['contentstreamid']) ->addIndex(['parentnodeanchor']) - ->addIndex(['contentstreamid', 'childnodeanchor', 'dimensionspacepointhash']) + ->addIndex(['childnodeanchor', 'contentstreamid', 'dimensionspacepointhash', 'position']) + ->addIndex(['parentnodeanchor', 'contentstreamid', 'dimensionspacepointhash', 'position']) ->addIndex(['contentstreamid', 'dimensionspacepointhash']); }