From a76769a842ce13a97ba66a1f571be202ca19edb5 Mon Sep 17 00:00:00 2001 From: teleivo Date: Tue, 12 Nov 2024 12:19:33 +0100 Subject: [PATCH] chore: remove unnecessary join on TE orgUnit (#19129) --- .../org/hisp/dhis/tracker/export/event/JdbcEventStore.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/dhis-2/dhis-services/dhis-service-tracker/src/main/java/org/hisp/dhis/tracker/export/event/JdbcEventStore.java b/dhis-2/dhis-services/dhis-service-tracker/src/main/java/org/hisp/dhis/tracker/export/event/JdbcEventStore.java index 3b6848da5fdb..03fcbdb7e685 100644 --- a/dhis-2/dhis-services/dhis-service-tracker/src/main/java/org/hisp/dhis/tracker/export/event/JdbcEventStore.java +++ b/dhis-2/dhis-services/dhis-service-tracker/src/main/java/org/hisp/dhis/tracker/export/event/JdbcEventStore.java @@ -802,9 +802,6 @@ private String getEventSelectQuery( .append("p.type as p_type, ") .append("te.trackedentityid as te_id, te.uid as ") .append(COLUMN_TRACKEDENTITY_UID) - .append( - ", teou.uid as te_ou, teou.name as te_ou_name, te.created as te_created, te.inactive as" - + " te_inactive ") .append( getFromWhereClause( params, @@ -852,8 +849,6 @@ private StringBuilder getFromWhereClause( fromBuilder .append("left join trackedentity te on te.trackedentityid=en.trackedentityid ") - .append( - "left join organisationunit teou on (te.organisationunitid=teou.organisationunitid) ") .append("left join userinfo au on (ev.assigneduserid=au.userinfoid) "); // JOIN attributes we need to filter on.