Skip to content

Commit 67b761b

Browse files
committed
RHINENG-25871: optimize floorist query
unnecessary join removed old explain Sort (cost=151040800.03..151040900.03 rows=40000 width=66) new explain Sort (cost=9839689.61..9839789.61 rows=40000 width=66)
1 parent 346ac63 commit 67b761b

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

deploy/clowdapp.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,6 @@ objects:
566566
adv.applicable_systems AS applicable_systems
567567
FROM (SELECT sa.rh_account_id, sa.advisory_id, COUNT(*) as applicable_systems
568568
FROM system_advisories sa
569-
JOIN system_inventory si ON sa.rh_account_id = si.rh_account_id AND sa.system_id = si.id
570569
GROUP BY sa.rh_account_id, sa.advisory_id
571570
) as adv
572571
JOIN rh_account ra ON ra.id = adv.rh_account_id

0 commit comments

Comments
 (0)