9,566 MLB games in my database had quietly failed to resolve, and nothing ever threw an error. The cause was two team names frozen on the day their rows were created: "Florida Marlins" and "Oakland Athletics".
Statpro, my sports stats and betting-research site, matches each game to its teams by exact name. Everything downstream had already modernised on its own, from URL names to logo paths. Only the name and code columns on the team rows themselves were stale. So every game for both franchises, across their full history, matched nothing.
A two-column fix and a six-file sweep
The repair was small. Florida Marlins became Miami Marlins (MIA, rebranded in 2012), and Oakland Athletics became just Athletics (ATH, relocated in 2025). Then I swept the six files that read those columns so everything stayed in sync. Afterwards, 317 of the 321 Marlins and Athletics games from the 2026 season resolve. The last 4 sit behind a separate bug: the step that loads games crashes on doubleheaders (two games between the same teams in one day) whatever the team is called.
I'd already fixed this class of bug once, for old NBA team names and codes (SEA, NJN, VAN, NOH), and it still caught me. Identity rot hides because each consumer patches itself, and the one stale copy sits where nobody looks.
An odds mirror that can't hurt the serving path
The other thread was moving betting odds into the new shared database of games, players and teams, which the site is migrating to from an older one. The job now writes odds to both the old store and the new one, as a step between fetching odds and calculating edges (the score that rates each prop). That step fails open: if the copy breaks, the job carries on, so a mirror failure never touches the path that serves pages to users.
The first run mirrored 856 MLB game lines (odds on a whole game) and 11,391 prop lines (odds on one player's stat in one game) cleanly. A re-run wrote zero new history rows, because a fingerprint check skips any line that hasn't changed. Players match by exact name first, then through a fallback that relaxes suffixes such as Jr., Sr., II and III.
Audit the column the matcher reads
When a team renames, the visible surfaces get fixed first because someone sees them. The column an exact-match lookup depends on has no viewer at all. That's the one to go and check.