Skip to content

Main - #271

Merged
levibliz merged 3 commits into
devfrom
main
Aug 21, 2026
Merged

Main#271
levibliz merged 3 commits into
devfrom
main

Conversation

@levibliz

Copy link
Copy Markdown
Contributor

merge

… retention

Add automated downsampling, retention policies, and continuous aggregates
for cost-effective long-term historical storage of location events.

- Extend StorageAdapter interface with compact() and getCompactionStatus()
- Add resolution parameter to queryRoom() for tiered data access
  (raw, 1m, 1h, 1d, auto)
- Implement declarative partitioning by day on location_events
- Add location_events_1m, _1h, _1d downsample/aggregate tables
- Implement compaction pipeline: partition drop, 1m downsampling,
  1h aggregates, 1d rollups, tier retention trimming
- Add transparent query routing with auto-resolution selection
- Implement MemoryAdapter compaction for testing without PostgreSQL
- Add migration-compaction.sql for existing deployments
- Update docker-compose.yml for TimescaleDB support
- Add compaction configuration env vars
- Add comprehensive test suite (storage-compaction.test.js)

Closes #257
Closes #254
Closes #252
Closes #251
feat(storage): implement time-series compaction with downsampling and retention
@levibliz
levibliz merged commit ba6c7c8 into dev Aug 21, 2026
1 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant