Commit Graph

3 Commits

Author SHA1 Message Date
douxu d670963854 refactor(redis): normalize data object storage with aliases
- store one canonical hash for each parameter and measurement
- map supported token formats to canonical Redis keys through aliases
- resolve aliases in query and update handlers
- clean stale hashes and aliases during initialization
- update Redis change logic and related tests
2026-07-31 13:39:18 +08:00
douxu 0b004471fe feat: synchronize data object attributes with redis
- read parameter and measurement attributes from redis
- support size-aware realtime measurement windows
- coordinate postgreSQL and redis updates with rollback compensation
- validate measurement window sizes during initialization
- add redis change and attribute query/update tests
2026-07-30 15:32:22 +08:00
douxu de1110905e feat: bootstrap measurement data objects in Redis
- load measurement hierarchy and metadata from PostgreSQL
- generate 3 types Redis hashes
- map measurement type enums to TM, TS, TC, TA, and SP
- validate token uniqueness, mode, type, and JSONB fields
- track initialized hashes and clean up stale measurement keys
- initialize measurement data objects during modelRT startup
2026-07-29 15:12:05 +08:00