home.social

#sqldatabase — Public Fediverse posts

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

fetched live
  1. Why does this SQL ORDER BY in subquery get ignored?

    Why does this SQL ORDER BY in subquery get ignored. The SQL code uses ORDER BY inside a derived table. In MySQL without LIMIT the optimizer ignores it. In SQL the order you expect is not the order you get.

    #whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqldataintegrity #sqlengineering #sqlorderby #sql...

    youtube.com/watch?v=f4mdNHOjKTg

  2. Why does this SQL ORDER BY in subquery get ignored?

    Why does this SQL ORDER BY in subquery get ignored. The SQL code uses ORDER BY inside a derived table. In MySQL without LIMIT the optimizer ignores it. In SQL the order you expect is not the order you get.

    #whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqldataintegrity #sqlengineering #sqlorderby #sql...

    youtube.com/watch?v=f4mdNHOjKTg

  3. Why does this SQL phantom read show rows that vanish?

    Why does this SQL phantom read show rows that vanish. The SQL code runs REPEATABLE READ. In MySQL another transaction can insert matching rows. In SQL you see rows in one read that disappear in the next.

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

    youtube.com/watch?v=2HZvRkzESXA

  4. Why does this SQL phantom read show rows that vanish?

    Why does this SQL phantom read show rows that vanish. The SQL code runs REPEATABLE READ. In MySQL another transaction can insert matching rows. In SQL you see rows in one read that disappear in the next.

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

    youtube.com/watch?v=2HZvRkzESXA

  5. Why does this SQL ORDER BY RAND() melt the database?

    Why does this SQL ORDER BY RAND() melt the database. The SQL code uses ORDER BY RAND() for random rows. In MySQL that sorts the entire table. In SQL one query can take down the server.

    #whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqldataintegrity #sqlengineering #sqlorderbyrand #sqlrandom #sqlsort ...

    youtube.com/watch?v=2G3tRvhnyJM

  6. Why does this SQL ORDER BY RAND() melt the database?

    Why does this SQL ORDER BY RAND() melt the database. The SQL code uses ORDER BY RAND() for random rows. In MySQL that sorts the entire table. In SQL one query can take down the server.

    #whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqldataintegrity #sqlengineering #sqlorderbyrand #sqlrandom #sqlsort ...

    youtube.com/watch?v=2G3tRvhnyJM

  7. Why does this SQL SUM return NULL for empty?

    Why does this SQL SUM return NULL for empty result. The SQL code sums a column without COALESCE. In SQL SUM of zero rows returns NULL not zero. In SQL APIs this breaks calculations and causes NaN downstream.

    #whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqldataintegrity #sqlengineering #sqlsum #sqlnull #sql...

    youtube.com/watch?v=gG4KtBljZ-o

  8. Why does this SQL SUM return NULL for empty?

    Why does this SQL SUM return NULL for empty result. The SQL code sums a column without COALESCE. In SQL SUM of zero rows returns NULL not zero. In SQL APIs this breaks calculations and causes NaN downstream.

    #whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqldataintegrity #sqlengineering #sqlsum #sqlnull #sql...

    youtube.com/watch?v=gG4KtBljZ-o

  9. What's wrong with this SQL REPLACE deleting related rows?

    What's wrong with this SQL REPLACE deleting related rows. The SQL code uses REPLACE instead of INSERT ON DUPLICATE. In MySQL REPLACE deletes then inserts, firing deletes on child tables. In SQL this cascades to data loss.

    #whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqldataintegrity #sqlengine...

    youtube.com/watch?v=fIHKcR7Dh28

  10. What's wrong with this SQL REPLACE deleting related rows?

    What's wrong with this SQL REPLACE deleting related rows. The SQL code uses REPLACE instead of INSERT ON DUPLICATE. In MySQL REPLACE deletes then inserts, firing deletes on child tables. In SQL this cascades to data loss.

    #whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqldataintegrity #sqlengine...

    youtube.com/watch?v=fIHKcR7Dh28

  11. What's wrong with this SQL dividing integers?

    What's wrong with this SQL dividing integers losing decimals. The SQL code divides two integer columns. In SQL integer division truncates to integer. In SQL analytics this undercounts rates and percentages.

    #whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqldataintegrity #sqlengineering #sqldivision #sqlinte...

    youtube.com/watch?v=xULrs5LG75M

  12. What's wrong with this SQL dividing integers?

    What's wrong with this SQL dividing integers losing decimals. The SQL code divides two integer columns. In SQL integer division truncates to integer. In SQL analytics this undercounts rates and percentages.

    #whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqldataintegrity #sqlengineering #sqldivision #sqlinte...

    youtube.com/watch?v=xULrs5LG75M

  13. What's wrong with this SQL connection using wrong charset?

    What's wrong with this SQL connection using wrong charset. The SQL code connects without specifying charset. In MySQL wrong default corrupts Unicode. In SQL you get mojibake in the database.

    #whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqldataintegrity #sqlengineering #sqlcharset #sqlutf8 #sq...

    youtube.com/watch?v=io54Ac5fdeQ

  14. What's wrong with this SQL connection using wrong charset?

    What's wrong with this SQL connection using wrong charset. The SQL code connects without specifying charset. In MySQL wrong default corrupts Unicode. In SQL you get mojibake in the database.

    #whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqldataintegrity #sqlengineering #sqlcharset #sqlutf8 #sq...

    youtube.com/watch?v=io54Ac5fdeQ

  15. What's wrong with this SQL INSERT ON DUPLICATE overwriting everything?

    What's wrong with this SQL INSERT ON DUPLICATE overwriting everything. The SQL code uses ON DUPLICATE KEY UPDATE with VALUES(). In SQL on duplicate it overwrites even columns you did not mean to change. In SQL upserts this corrupts data.

    #whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics...

    youtube.com/watch?v=a-oSg485bdE

  16. What's wrong with this SQL INSERT ON DUPLICATE overwriting everything?

    What's wrong with this SQL INSERT ON DUPLICATE overwriting everything. The SQL code uses ON DUPLICATE KEY UPDATE with VALUES(). In SQL on duplicate it overwrites even columns you did not mean to change. In SQL upserts this corrupts data.

    #whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics...

    youtube.com/watch?v=a-oSg485bdE

  17. What's wrong with this SQL DISTINCT hiding duplicate inserts?

    What's wrong with this SQL DISTINCT hiding duplicate inserts. The SQL code uses DISTINCT to dedupe. In SQL DISTINCT masks the fact that duplicates were written. In SQL the root cause stays and grows.

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

    youtube.com/watch?v=hhCIBFoiC6M

  18. What's wrong with this SQL DISTINCT hiding duplicate inserts?

    What's wrong with this SQL DISTINCT hiding duplicate inserts. The SQL code uses DISTINCT to dedupe. In SQL DISTINCT masks the fact that duplicates were written. In SQL the root cause stays and grows.

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

    youtube.com/watch?v=hhCIBFoiC6M

  19. Why does this SQL retry backoff melt servers?

    Why does this SQL retry backoff melt servers during outages. The SQL job retries on a fixed schedule without jitter, so all workers stampede at once. In SQL pipelines this keeps the outage alive.

    #whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqldataintegrity #sqlengineering #sqlretrybackoff #sqlthunderingh...

    youtube.com/watch?v=ZWGlA3LIntI

  20. Why does this SQL retry backoff melt servers?

    Why does this SQL retry backoff melt servers during outages. The SQL job retries on a fixed schedule without jitter, so all workers stampede at once. In SQL pipelines this keeps the outage alive.

    #whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqldataintegrity #sqlengineering #sqlretrybackoff #sqlthunderingh...

    youtube.com/watch?v=ZWGlA3LIntI

  21. Why does this SQL MERGE overwrite when it should not?

    Why does this SQL MERGE overwrite when it should not. The SQL code uses MERGE with a WHEN MATCHED that always runs. In SQL the logic can overwrite rows you intended to skip. In SQL sync jobs this corrupts data.

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

    youtube.com/watch?v=FzZuQz1s4oE

  22. Why does this SQL MERGE overwrite when it should not?

    Why does this SQL MERGE overwrite when it should not. The SQL code uses MERGE with a WHEN MATCHED that always runs. In SQL the logic can overwrite rows you intended to skip. In SQL sync jobs this corrupts data.

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

    youtube.com/watch?v=FzZuQz1s4oE

  23. What's wrong with this SQL query doubling the boundary row?

    What's wrong with this SQL query doubling the boundary row in a report. The SQL code uses BETWEEN for a date range. In SQL BETWEEN is inclusive on both ends so the boundary gets counted twice if used in a join.

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

    youtube.com/watch?v=DuZMlxodwwo

  24. What's wrong with this SQL query doubling the boundary row?

    What's wrong with this SQL query doubling the boundary row in a report. The SQL code uses BETWEEN for a date range. In SQL BETWEEN is inclusive on both ends so the boundary gets counted twice if used in a join.

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

    youtube.com/watch?v=DuZMlxodwwo

  25. What's wrong with this SQL COALESCE preventing index use?

    What's wrong with this SQL COALESCE preventing index use. The SQL code filters with COALESCE(column, default). In MySQL functions on columns block indexes. In SQL the query scans the whole table.

    #whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqldataintegrity #sqlengineering #sqlcoalesce #sqlind...

    youtube.com/watch?v=OrPyGHSBlqQ

  26. What's wrong with this SQL COALESCE preventing index use?

    What's wrong with this SQL COALESCE preventing index use. The SQL code filters with COALESCE(column, default). In MySQL functions on columns block indexes. In SQL the query scans the whole table.

    #whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqldataintegrity #sqlengineering #sqlcoalesce #sqlind...

    youtube.com/watch?v=OrPyGHSBlqQ

  27. Why does this SQL batch INSERT hold locks for minutes?

    Why does this SQL batch INSERT hold locks for minutes. The SQL code inserts millions of rows in one statement. In MySQL that holds locks until done. In SQL a huge insert blocks all other writes.

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

    youtube.com/watch?v=jsfy-AaKG20

  28. Why does this SQL batch INSERT hold locks for minutes?

    Why does this SQL batch INSERT hold locks for minutes. The SQL code inserts millions of rows in one statement. In MySQL that holds locks until done. In SQL a huge insert blocks all other writes.

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

    youtube.com/watch?v=jsfy-AaKG20

  29. Why does this SQL prepared statement reuse the wrong plan?

    Why does this SQL prepared statement reuse the wrong plan. The SQL code uses a prepared statement with different param values. In MySQL the first execution picks a plan. In SQL later values may need a different plan but get the wrong one.

    #whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqldatain...

    youtube.com/watch?v=PJT_qVSjNBc

  30. Why does this SQL prepared statement reuse the wrong plan?

    Why does this SQL prepared statement reuse the wrong plan. The SQL code uses a prepared statement with different param values. In MySQL the first execution picks a plan. In SQL later values may need a different plan but get the wrong one.

    #whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqldatain...

    youtube.com/watch?v=PJT_qVSjNBc

  31. Why does this SQL subquery run a thousand times?

    Why does this SQL subquery run a thousand times in production. The SQL code uses a correlated subquery in SELECT. In MySQL it executes once per row. In SQL one query can become millions of executions.

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

    youtube.com/watch?v=HDQwetsWSX4

  32. Why does this SQL subquery run a thousand times?

    Why does this SQL subquery run a thousand times in production. The SQL code uses a correlated subquery in SELECT. In MySQL it executes once per row. In SQL one query can become millions of executions.

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

    youtube.com/watch?v=HDQwetsWSX4

  33. Why does this SQL INSERT create duplicate IDs after rollback?

    Why does this SQL INSERT create duplicate IDs after rollback. The SQL code relies on sequential auto increment. In MySQL rollback consumes the value and the next insert gets a gap. In SQL systems expecting contiguous IDs this breaks logic.

    #whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqlda...

    youtube.com/watch?v=udaZivmnDgQ

  34. Why does this SQL INSERT create duplicate IDs after rollback?

    Why does this SQL INSERT create duplicate IDs after rollback. The SQL code relies on sequential auto increment. In MySQL rollback consumes the value and the next insert gets a gap. In SQL systems expecting contiguous IDs this breaks logic.

    #whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqlda...

    youtube.com/watch?v=udaZivmnDgQ

  35. Why does this SQL JSON extract never use the index?

    Why does this SQL JSON extract never use the index. The SQL code queries JSON with JSON_EXTRACT. In MySQL that cannot use a regular index. In SQL use a generated column with an index.

    #whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqldataintegrity #sqlengineering #sqljson #sqljsonextract #sqlindex #sq...

    youtube.com/watch?v=7ybwR_o8Wh8

  36. Why does this SQL JSON extract never use the index?

    Why does this SQL JSON extract never use the index. The SQL code queries JSON with JSON_EXTRACT. In MySQL that cannot use a regular index. In SQL use a generated column with an index.

    #whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqldataintegrity #sqlengineering #sqljson #sqljsonextract #sqlindex #sq...

    youtube.com/watch?v=7ybwR_o8Wh8

  37. Why does this SQL gap lock block an insert you never touched?

    Why does this SQL gap lock block an insert you never touched. The SQL code uses SELECT FOR UPDATE. In MySQL InnoDB locks the gap. In SQL another session cannot insert in that range.

    #whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqldataintegrity #sqlengineering #sqlgaplock #sqlforupdate #sql...

    youtube.com/watch?v=dJR8VO6OSeU

  38. Why does this SQL gap lock block an insert you never touched?

    Why does this SQL gap lock block an insert you never touched. The SQL code uses SELECT FOR UPDATE. In MySQL InnoDB locks the gap. In SQL another session cannot insert in that range.

    #whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqldataintegrity #sqlengineering #sqlgaplock #sqlforupdate #sql...

    youtube.com/watch?v=dJR8VO6OSeU

  39. Why does this SQL UNIQUE constraint allow multiple NULLs?

    Why does this SQL UNIQUE constraint allow multiple NULLs. The SQL code adds UNIQUE on a nullable column. In SQL NULL is not equal to NULL so unique allows many NULLs. In SQL this breaks deduplication logic.

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

    youtube.com/watch?v=EY-UOebdlEI

  40. Why does this SQL UNIQUE constraint allow multiple NULLs?

    Why does this SQL UNIQUE constraint allow multiple NULLs. The SQL code adds UNIQUE on a nullable column. In SQL NULL is not equal to NULL so unique allows many NULLs. In SQL this breaks deduplication logic.

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

    youtube.com/watch?v=EY-UOebdlEI

  41. Why does this SQL CHAR comparison match wrong with trailing spaces?

    Why does this SQL CHAR comparison match wrong with trailing spaces. The SQL code uses CHAR which pads with spaces. In MySQL 'a' and 'a ' compare equal. In SQL lookups you can match the wrong row.

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

    youtube.com/watch?v=CyfztMPBd5o

  42. Why does this SQL CHAR comparison match wrong with trailing spaces?

    Why does this SQL CHAR comparison match wrong with trailing spaces. The SQL code uses CHAR which pads with spaces. In MySQL 'a' and 'a ' compare equal. In SQL lookups you can match the wrong row.

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

    youtube.com/watch?v=CyfztMPBd5o

  43. Why does this SQL UPDATE lock the entire table?

    Why does this SQL UPDATE lock the entire table. The SQL code updates with a condition that has no index. In MySQL it locks every row it scans. In SQL services one update blocks all other writes.

    #whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqldataintegrity #sqlengineering #sqlupdate #sqllock #sqlfullsca...

    youtube.com/watch?v=hxJMh219sf0

  44. Why does this SQL UPDATE lock the entire table?

    Why does this SQL UPDATE lock the entire table. The SQL code updates with a condition that has no index. In MySQL it locks every row it scans. In SQL services one update blocks all other writes.

    #whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqldataintegrity #sqlengineering #sqlupdate #sqllock #sqlfullsca...

    youtube.com/watch?v=hxJMh219sf0

  45. What's wrong with this SQL DATE function blocking the index?

    What's wrong with this SQL DATE function blocking the index. The SQL code wraps a datetime column in DATE(). In MySQL functions on columns prevent index use. In SQL this turns indexed lookups into full scans.

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

    youtube.com/watch?v=zTRYlHVjZ5A

  46. What's wrong with this SQL DATE function blocking the index?

    What's wrong with this SQL DATE function blocking the index. The SQL code wraps a datetime column in DATE(). In MySQL functions on columns prevent index use. In SQL this turns indexed lookups into full scans.

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

    youtube.com/watch?v=zTRYlHVjZ5A

  47. Why does this SQL counter lose updates?

    Why does this SQL counter lose updates under concurrency. The SQL code reads then writes without locking, so concurrent increments overwrite each other. In SQL services this undercounts events.

    #whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqldataintegrity #sqlengineering #sqlracecondition #sqlcounterbug #sqlcon...

    youtube.com/watch?v=_Al7OSnYuPM

  48. Why does this SQL counter lose updates?

    Why does this SQL counter lose updates under concurrency. The SQL code reads then writes without locking, so concurrent increments overwrite each other. In SQL services this undercounts events.

    #whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqldataintegrity #sqlengineering #sqlracecondition #sqlcounterbug #sqlcon...

    youtube.com/watch?v=_Al7OSnYuPM

  49. Why does this SQL stored procedure break when you add a column?

    Why does this SQL stored procedure break when you add a column. The SQL code uses SELECT * in a procedure. In SQL the result shape changes on schema change. In SQL procedures that call it crash.

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

    youtube.com/watch?v=0tiKd1P5qXQ