perf(archive): remove unused NgRx archive stores to reduce memory usage

Archives (archiveYoung, archiveOld) were being loaded into NgRx state
at startup but their selectors were never read anywhere in the codebase.
All code that needs archives loads them directly from IndexedDB via
ArchiveDbAdapter (StateSnapshotService, TaskArchiveService, etc).

This change removes the archive store registrations from NgRx, which:
- Reduces memory usage for users with large archives
- Improves startup time (no longer dispatching large archive data to NgRx)
- Reduces GC pressure (fewer large objects in memory)

Archive functionality is unaffected - archives are still stored in
IndexedDB and loaded on-demand when needed for worklog, sync, etc.
This commit is contained in:
Johannes Millan 2026-01-14 12:27:40 +01:00
parent c5625317bf
commit b2a807f7db
5 changed files with 69 additions and 9 deletions

View file

@ -72,6 +72,11 @@
"production": {
"baseHref": "",
"budgets": [
{
"type": "initial",
"maximumWarning": "5.5mb",
"maximumError": "6mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "20kb"
@ -104,6 +109,11 @@
"browser": "browser"
},
"budgets": [
{
"type": "initial",
"maximumWarning": "5.5mb",
"maximumError": "6mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "20kb"
@ -133,6 +143,11 @@
"stage": {
"baseHref": "",
"budgets": [
{
"type": "initial",
"maximumWarning": "5.5mb",
"maximumError": "6mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "20kb"