Skip to content

Commit

Permalink
chore: remove unnecessary join on TE orgUnit (#19129)
Browse files Browse the repository at this point in the history
  • Loading branch information
teleivo authored Nov 12, 2024
1 parent babc1da commit a76769a
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit a76769a

Please sign in to comment.