How it works
A nightly maintenance job runs in two phases:- Archive — data older than the retention window is compressed and written to cold storage, then removed from the live database.
- Downsample — data that remains in the live database is thinned to progressively lower resolution as it ages.
Retention windows
Each data type has a retention window that controls how long it stays in the live database before being archived.Archived data is retained indefinitely at full resolution in cold storage. Only the live database copy is removed after the retention window.
AIS position lifecycle
AIS positions move through four stages as they age. The first three stages keep data in the live database at progressively coarser resolution; the fourth moves raw data to cold storage.Data older than 90 days is preserved at full resolution in the archive — not downsampled. This means retrospective analyses that need fine-grained position history (for example, ship-to-ship transfer reconstruction or motif detection) can be answered at original resolution by rehydrating from the archive.
Resolution impact
At full resolution, a single vessel broadcasting every 2 seconds produces approximately 43,000 position reports per day. After in-place downsampling:What this means for your queries
- Real-time tracking and alerting (0–7 days) — full resolution, no data loss.
- Recent investigations (7–30 days) — 1-minute resolution is sufficient for route reconstruction, speed profiling, and anomaly detection.
- Historical analysis (30–90 days) — 5-minute resolution shows vessel tracks and port visits clearly but may miss brief maneuvers.
- Long-term and retrospective analysis (90+ days) — full-resolution data is available from the archive on request. Live-database queries do not return data older than 90 days; contact support to rehydrate the date range you need.