From f6faa355d966a0f81f3ff159b5c18cec11f1afd3 Mon Sep 17 00:00:00 2001 From: Andrei Rebegea Date: Thu, 21 Mar 2019 13:42:18 +0200 Subject: [PATCH] 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 4be5abd6a9cf0a5da0df716365b934b61fc7e9b3) --- .../node-common-SqlMap.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/alfresco/ibatis/org.alfresco.repo.domain.dialect.Dialect/node-common-SqlMap.xml b/src/main/resources/alfresco/ibatis/org.alfresco.repo.domain.dialect.Dialect/node-common-SqlMap.xml index c476d15afe..dfeecef619 100644 --- a/src/main/resources/alfresco/ibatis/org.alfresco.repo.domain.dialect.Dialect/node-common-SqlMap.xml +++ b/src/main/resources/alfresco/ibatis/org.alfresco.repo.domain.dialect.Dialect/node-common-SqlMap.xml @@ -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) order by