REPO-4262: HotFix: MNT-20383: Associations query takes a long time to run and consumes a lot of CPU on the DB side (#374)

Merged from master (ACS 6.2) to the branch for ACS 6.1.N

(cherry picked from commit 4be5abd6a9)
This commit is contained in:
Andrei Rebegea
2019-03-21 13:42:18 +02:00
committed by Andrei Rebegea
parent 7fbf3c8904
commit f6faa355d9

View File

@@ -825,7 +825,7 @@
join alf_node sourceNode on (sourceNode.id = assoc.source_node_id)
join alf_store sourceStore on (sourceStore.id = sourceNode.store_id)
join alf_node targetNode on (targetNode.id = assoc.target_node_id)
join alf_store targetStore on (targetStore.id = targetNode.store_id)
left join alf_store targetStore on (targetStore.id = targetNode.store_id)
</sql>
<sql id="select_NodeAssoc_OrderBy">
order by