Trace a Late Fleet Report Through History and the Live Map
Trace a Late Fleet Report Through History and the Live Map
Why does the history change while the map holds?
Fleet recordsRecord both clocks
Ingest
Newer arrives first
Device clock → observed_at
History insert → inserted_at
fleet_points · history
| Order by | Earlier → Later |
|---|---|
observed_at |
Newer |
inserted_at |
Newer |
fleet_latest · map read path
Latest-state update pending
Publish the map position
Ingest
- Newer
- Update latest row
fleet_points · history
| Order by | Earlier → Later |
|---|---|
observed_at |
Newer |
inserted_at |
Newer |
fleet_latest · map read path
- Latest row
- Live map
Map pin · Newer
Latest row keyed by tenant and vehicle
Receive the older observation
Ingest
Older arrives after reconnect
Older fails the latest-row guard.
fleet_points · history
| Order by | Earlier → Later |
|---|---|
observed_at |
OlderNewer |
inserted_at |
NewerOlder |
fleet_latest · map read path
Ingest guard for an existing row with the same tenant_id and vehicle_id · require incoming observed_at > stored observed_at.
Map pin · Newer
Latest row keyed by tenant and vehicle
Illustrative replay handling
Ingest
Replay Older with matching history key
tenant_idvehicle_idobserved_atfleet_points · history
Existing Older row
tenant_idvehicle_idobserved_atKey conflict · History stays as shown
| Order by | Earlier → Later |
|---|---|
observed_at |
OlderNewer |
inserted_at |
NewerOlder |
fleet_latest · map read path
Map pin · Newer
Latest row keyed by tenant and vehicle
Read route history
Ingest
Route-history request for the selected tenant and vehicle
fleet_points · history
tenant_id = selected tenant AND vehicle_id = selected vehicle AND observed_at in requested window
Candidate access paths · observed_at chunks and fleet_points_vehicle_time_idx
fleet_latest · map read path
Map pin · Newer
Latest row keyed by tenant and vehicle
Check freshness on reconnect
Ingest
Device heartbeat
Check whether the device has reconnected.
fleet_points · history
Raw insert time
Older was inserted recently.
| Order by | Earlier → Later |
|---|---|
observed_at |
OlderNewer |
inserted_at |
NewerOlder |
fleet_latest · map read path
Latest-state update time
Map pin · Newer
Latest row keyed by tenant and vehicle
The pin and row have held since Newer.
History records when the vehicle was observed and when the row was inserted.
Technical boundaries. The example follows one tenant and vehicle and illustrates replay conflict handling with a matching history key. The route-history frame names possible chunk and index access paths. Actual chunk pruning and index use need checking in a representative query plan.