Skip to content

Commit

Permalink
Merge pull request #5257 from kitsunet/task/improved-hierachy-indices
Browse files Browse the repository at this point in the history
TASK: Add indices to improve parent/child query performance
  • Loading branch information
bwaidelich committed Sep 23, 2024
2 parents a6b3fb6 + abf2b02 commit e86f8f3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}

Expand Down

0 comments on commit e86f8f3

Please sign in to comment.