home.social

#sqlla — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #sqlla, aggregated by home.social.

fetched live
  1. What's wrong with this SQL IN list with thousands of IDs?

    What's wrong with this SQL IN list with thousands of IDs. The SQL code passes a huge IN clause. In MySQL large IN lists can crash the parser or pick a bad plan. In SQL use a temp table and JOIN instead.

    #whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqldataintegrity #sqlengineering #sqlin #sqlla...

    youtube.com/watch?v=hQg2J2ckQBk

  2. Why does this SQL lock table block readers?

    Why does this SQL lock table block readers in production. The SQL code runs a long update in a transaction, holding locks and blocking reads. In SQL services this causes latency spikes and timeouts.

    #whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqldataintegrity #sqlengineering #sqllock #sqltransaction #sqlla...

    youtube.com/watch?v=s_mcOfxOi3s