mysql

  • Write latency after dropping an index

    Eleven indexes removed from production tables, and the write path measured before and after. The median saving is trivial and the tail is not, which is the usual…

  • Deleting a module

    A module built in 2022 for a product line discontinued in 2024. Eight thousand lines, a database schema and two scheduled jobs, all still running.

  • Split-brain, and the check that refuses to promote

    A manual failover, and a guard against the case where the old primary is still writing. Refusing to promote while the old primary answers is the check that…

  • The reporting database that is not a replica

    A read replica serving reports, and reports that want a different schema. Eleven indexes on production tables that exist only for reporting.

  • Building an MCP server for a database

    turkerdev/mysql-mcp, and what a protocol for tool access actually requires. The authorisation model is the host’s problem, which means it is all yours.

  • A nightly rebuild that failed silently for two days

    A reporting database rebuilt nightly, and a failure that produced a stale copy rather than an error. A half-completed rebuild is worse than a failed one because the…

  • The second host, and the failover we finally built

    Seven years on one host, and a business requirement that finally arrived. A recovery time that assumes the host comes back.

  • A dual-write window, and the check that ran nightly

    Six weeks of writing two columns, and a check that they agree. The nightly agreement check is what makes a dual-write window safe, and it caught exactly the…

  • A retention report that asserts rather than describes

    A monthly report on retention that nobody read, converted into three assertions that fail. A report describes and an assertion fails, and the difference is whether anybody has…

  • An expand-and-contract for a column type

    A VARCHAR(32) becoming an ENUM, on a table with four hundred writes a second. Four releases for a column type is the honest cost of not being able…