Merge pull request #34315 from backstage/freben/search-extended-statistics

Add extended statistics on search(key, value) for query planner accuracy
This commit is contained in:
Fredrik Adelöw
2026-05-26 14:46:50 +02:00
committed by GitHub
3 changed files with 151 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-backend': patch
---
Added extended multi-column statistics on `(key, value)` in the `search` table (PostgreSQL only). This tells the query planner about the correlation between the `key` and `value` columns, fixing severe row count estimation errors on compound filter queries. Without this, the planner could choose to materialize and sort thousands of rows instead of using the LIMIT short-circuit index scan — causing 10-40x slower catalog list views when multiple filters are active.