Case study · Systems & performance analysis
Reading other teams' systems — application code, databases, query logs, gateways — to find why something is slow, wrong, or drifting, and then proving the fix.
Redacted case study. Employer and product brands are anonymized; IP addresses, account identifiers, hostnames and credentials are omitted. Metrics are real, measured figures.
A reporting portal was timing out, and the easy story ("the analytics database is slow") was wrong. I measured the PostgreSQL source directly — the whole database was 626 MB and a full all-time aggregate ran in 55 ms — then read seven application repositories to trace the real causes:
I handed the DBA team a tiered plan. The zero-risk tier — disabling JIT for the portal role — was applied in production and measured at −86% on a representative endpoint, confirming the diagnosis. For the array-join endpoints that config alone couldn't fix, I wrote and verified (read-only, row-by-row against the original) query rewrites: a reconciliation summary dropped ~6.3 s → 18 ms, a disbursement list 188+135 ms → 55 ms. It shipped as a three-architecture proposal (database-side optimization · analytics aggregation via refreshable views · CDC-fed mirrors), with the trade-offs — not just the SQL.
A single client IP stopped appearing in a merchant portal's audit trail after a certain date, while a traffic burst was flagged on the gateway. I traced the full request path through the code — Gateway → application request filter → message queue → logging worker → MongoDB — and established that the audit trail only records requests that reach the app, so the disappearance was most likely an infra-level block, not a code change.
| Signal | Finding |
|---|---|
| Automated-login success | ~98.9% across 4,610 audit rows |
| Single-day gateway burst | 12,325 hits, #1 by route |
| Fraud-detection evasion | cadence ~1 req / 10 min — far under the rate threshold; empty user-agent |
| Data survivability | source purged after ~3 months; the only surviving copy was in the warehouse raw layer |
| Integrity caveat | audit IPs derive from client-controllable headers → spoofable |
A VA report showed a 2.2× row gap (~31K vs ~67K) that four other report legs didn't. I root-caused it to the source's transactional→analytics sync accumulating one row per historical payment key, re-grained the warehouse join to reproduce the stakeholder number, and caught a date-field bug affecting 54% of rows. Final match within 0.02% — and the warehouse turned out to be more complete than the source, which had silently dropped 21 valid transactions.
Classified ~700 mismatched rows by account prefix and proved 621 were by-design (routing splits, key recycling), narrowing the genuine-loss escalation to 19 rows.
Evaluated an open-source semantic layer as a governed metrics layer over the warehouse, with explicit kill-criteria. Verdict: NO-GO.
Decimal money to float — a GMV value …330319 became …33.