Subscribe free
Alloconomy 21 Nov 2026 3 min read

Accumulating snapshots remember milestones

Line A was accepted Friday, partially dispatched Saturday, fully dispatched Monday, and reopened Wednesday for a replacement.

The interview prompt

Line A was accepted Friday, partially dispatched Saturday, fully dispatched Monday, and reopened Wednesday for a replacement. What should “time to fulfill” mean? Draw the milestones, state what can repeat, and identify orders excluded from your metric.

Choose the process instance before its milestones

If the school asks how long the original order took, use one row per original order line, with acceptance, first dispatch, and full dispatch timestamps. A replacement can have its own attempt ID pointing to that line. This preserves the original three-calendar-day completion and lets support see the later work. If the customer asks how long until the issue was finally resolved, construct a wider case with an explicitly chosen terminal event.

A cancellation is terminal for operational workload but is usually outside the successful-fulfillment latency population. Give it its own outcome and report its rate. An open line has no completed duration yet. Restricting a performance dashboard to completed lines can make a growing backlog of very slow lines vanish. Pair completed-duration percentiles with open-age buckets and their counts.

Specify how the timing math works. Fractional elapsed hours require timestamps on a consistent time basis. “Business days” requires the service calendar, holidays, and cutoff. A one-row milestone design is particularly useful when those columns answer common questions. A state-transition fact earns its place when a process can bounce between stages and you need to count or time each visit.

The model behind the answer

The school asks how long it waited for the complete order. Use one row per order line and update it as the line reaches accepted, first dispatched, and fully dispatched. The first dispatch belongs to Saturday. Full dispatch belongs to Monday, three calendar days after Friday. Exact elapsed hours would require timestamps.

This design makes a long-running process easy to query. A null full-dispatch date on Sunday means that milestone is still pending for this open line. Decide how a cancellation closes the workflow so a canceled line does not wait forever. If the process restarts after a return, define whether it starts a new fulfillment attempt.

A current milestone row can tell Maya how the line ended. To count every attempted handoff or reproduce the backlog seen at an earlier close, retain the underlying events or historical versions. Kimball on accumulating snapshots

Specify what a reopened case can change

The agent proposes one mutable completion date. Sketch two consumers before reviewing the migration: the buyer measures time to the original fulfillment and support measures time to resolve a replacement. Give each a terminal event and an identity.

Reviewer decision. Reopen a Monday-completed order on Wednesday in the test. The original order must still show Monday as its full-dispatch milestone. The replacement should have a separately traceable open attempt. If an overwritten date makes Monday unrecoverable, revise the schema before backfilling it.

Further reading. The Data Warehouse Toolkit, 3rd ed., on updating a process row at successive milestones.

One more question

A support ticket is reopened twice after closure. How would you calculate total time waiting for the customer?

Check your reasoning

Record entry and exit from each waiting interval, add the disjoint intervals, and define how an open interval is capped at the reporting cutoff. First-wait and last-response timestamps cannot recover the intervening work. Test a ticket that never enters the waiting state as well as one still there.

Previous · Periodic snapshots remember the quiet days · Next · Find the dispatch that never happened · Complete series map