Merge pull request #33290 from backstage/freben/catalog-exists-query-optimization

catalog-backend: optimize entity filter queries with EXISTS
This commit is contained in:
Fredrik Adelöw
2026-03-29 12:48:38 +02:00
committed by GitHub
5 changed files with 116 additions and 68 deletions
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-backend': patch
---
Improved catalog entity filter query performance by switching from `IN (subquery)` to `EXISTS (correlated subquery)` patterns. This enables PostgreSQL semi-join optimizations and fixes `NOT IN` NULL-semantics pitfalls by using `NOT EXISTS` instead.