Slide 9
Slide 9 text
-- Slow query (AccessShare)
SELECT DISTINCT(customer_id) FROM payments;
-- Forces this to queue (AccessExclusive)
ALTER TABLE payments
ADD COLUMN refunded boolean;
-- Which blocks these (AccessShare)
SELECT * FROM payments WHERE id = 123;