Merge pull request #34301 from backstage/freben/incremental-ingestion-any-array

incremental-ingestion: use ANY(array) instead of IN(...) on Postgres
This commit is contained in:
Fredrik Adelöw
2026-05-19 14:06:34 +02:00
committed by GitHub
3 changed files with 159 additions and 19 deletions
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-backend-module-incremental-ingestion': patch
---
On PostgreSQL, `WHERE ref IN ($1, $2, ..., $N)` queries on the `ingestion_mark_entities` table now use `= ANY($1)` with a single array parameter instead. This reduces prepared statement bloat in the query plan cache when the number of entity refs varies between calls.