#sqlla — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #sqlla, aggregated by home.social.
-
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...
-
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...