mysql

  • Write latency, before and after eleven indexes

    Eleven reporting indexes dropped from production tables, measured on the write path. The median saving is trivial and the tail is not, which is the usual shape of…

  • A copy tool rejected because of a trigger

    An online schema change tool that works by adding triggers, on a table an outbox relay polls. The tool is well understood and the interaction with an existing…

  • A schema change on a table nobody can lock

    A column type change on a table taking four hundred writes a second, and an ALTER that estimates four hours.

  • An autoloaded option audit that found nothing

    A monthly check that has failed twice in two years, reporting clean for the fourteenth consecutive month. A check that has stopped failing is either a solved problem…

  • A restore from the second copy, timed

    A drill against the offsite copy rather than the primary, which took considerably longer for a reason nobody had costed. A recovery objective quoted from the fast path…

  • Reading from a replica, and the request that must not

    Two years of read splitting, and the twelfth place that had to read the primary. Naming the two reads differently is what keeps the count knowable — twelve…

  • Retention split by class, on 900 million rows

    One table with two retention requirements, seven years apart, and no column distinguishing them. The technical work was a generated column and a backfill; the work that took…

  • Anonymising rows that must be kept and must not identify

    Financial records retained for seven years, containing personal data that may not be retained that long. Keeping the postcode district and discarding the rest is the compromise that…

  • The backup that had to leave the building

    Every backup in one provider’s object storage, and a disaster recovery plan that assumes the disaster is local.

  • A schema cached rather than migrated, per job

    188 migrations run at the start of every CI job, replaced by a dump loaded in nine seconds. The staleness check is what makes this safe, and without…