Show HN: I replaced database deadlock victim selection with an LLM — here's the data

Every mainstream database uses fixed rules for deadlock victim selection. MySQL kills the one with the fewest locks. CockroachDB kills the youngest. PostgreSQL kills the one that closed the cycle. Not one of them can explain "why you" — the killed transaction just knows it got rolled back, no reason given. I wanted to see what happens if an LLM makes that decision instead. What I Built DDA is a Sidecar process. It sits outside the database, polls lock state, builds a wait-for gr...

Original Source

Read the full article at Dev →

KhanList aggregates and links to publicly available news content. We do not host full articles from third-party sources. Always verify important information with original sources.