cf195de72c
Route the EXISTS-based filters through final_entities (one row per entity) instead of correlating against the search table directly. This avoids the pathological case where correlated subqueries scan the much larger search table for every row in the outer facets query. Signed-off-by: Fredrik Adelöw <freben@spotify.com> Made-with: Cursor
290 B
290 B
@backstage/plugin-catalog-backend
| @backstage/plugin-catalog-backend |
|---|
| patch |
Fixed a performance regression in the /entity-facets endpoint when filters or permission conditions are applied, by routing the EXISTS-based filter through final_entities instead of correlating against the much larger search table.