← All work
Public-sector platform

Fee-calculation performance on a high-volume public-sector platform

Fee calculation ran for tens of seconds on the heaviest records and blocked the UI. Measured 3.4x to 15.4x faster.

Result
3.4-15x faster
Services
The application side of the database boundary

On a high-volume public-sector platform, fee calculation ran for tens of seconds on the heaviest records, which blocked the UI and the batch pipeline.

I went through every caller of the calculation engine. A recursive double-execution and per-row database writes accounted for almost all of the time. I removed the recursion, batched the writes with table-valued parameters, and rewrote the correlated subqueries in the stored procedures. I checked each change against real production data before rollout. The worst case I measured went from 25.6 seconds to 1.7.

SQL ServerPerformanceEF

More work

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.

An unhandled error has occurred. Reload 🗙