Add Event Detail Without Inventing History
Evolve aggregate-only counters into an event log by writing details and totals atomically, preserving irreducible legacy summaries, and using stable cursor pagination.
5 articles
Evolve aggregate-only counters into an event log by writing details and totals atomically, preserving irreducible legacy summaries, and using stable cursor pagination.
Repair a batch deletion path that depended on a read projection by loading persistence models directly, validating the full batch, and returning the real transaction result.
Repair a metric labelled today that included the previous day by defining one local-day interval, isolating headline parameters, and reconciling the total with its detail population.
Repair a workflow report that advances too early by filtering invalid events, normalizing legacy stages, recovering from business evidence, and recording milestones only when transitions occur.
How moving selective business filters ahead of window functions and dependent aggregates cut a paginated Oracle query from 27.49 seconds to about 1.40 seconds.