Skip to content

Commit

Permalink
BUGFIX: Improve performance on buildAncestorNodesQueries
Browse files Browse the repository at this point in the history
  • Loading branch information
dlubitz committed Oct 2, 2024
1 parent d121d50 commit bd2b9b9
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -558,8 +558,7 @@ private function buildAncestorNodesQueries(NodeAggregateId $entryNodeAggregateId
// the recursive part, to determine its ancestors.
$queryBuilderInitial = $this->createQueryBuilder()
->select('ph.subtreetags, ph.parentnodeanchor')
->from($this->nodeQueryBuilder->tableNames->node(), 'n')
->innerJoin('n', $this->nodeQueryBuilder->tableNames->hierarchyRelation(), 'ph', 'n.relationanchorpoint = ph.parentnodeanchor')
->from($this->nodeQueryBuilder->tableNames->hierarchyRelation(), 'ph')
->innerJoin('ph', $this->nodeQueryBuilder->tableNames->node(), 'c', 'c.relationanchorpoint = ph.childnodeanchor')
->andWhere('ph.contentstreamid = :contentStreamId')
->andWhere('ph.dimensionspacepointhash = :dimensionSpacePointHash')
Expand Down

0 comments on commit bd2b9b9

Please sign in to comment.