Merge pull request #15767 from RoadieHQ/improve-fact-lifecycle-performance

Improve fact lifecycle performance
This commit is contained in:
Fredrik Adelöw
2023-01-16 14:07:52 +01:00
committed by GitHub
2 changed files with 51 additions and 43 deletions
+6
View File
@@ -0,0 +1,6 @@
---
'@backstage/plugin-tech-insights-backend': patch
---
Modifies database cleanup to remove all facts for entities instead of hand-picked ones only. Improves query execution a lot in large datasets.
Changes semantics of the lifecycle deletion logic slightly for cases were historical entities/facts, that are , not present in the application anymore, were kept forever instead of being cleaned up. The new implementation is more along the expected lines.