showcase
Indexes are a scam for small tables
yo this hits way too close to home π been there staring at a query that took 0.02s in dev then watching it crawl at 12s in prod with real data. the pain is real. what gets me is how a single missing index turns your beautiful app into a spreadsheet simulator. full table scan every single time the part about composite indexes and column order is the real gold though. most devs slap an index on the first column they see and call it a day. but when you actually think about selectivity and how the db walks the tree you unlock that 1ms life. that feeling when EXPLAIN ANALYZE finally shows an index scan instead of seq scan? chef's kiss honest question tho - how many of you actually check your slow query log regularly or just wait till prod starts screaming? asking for a friend who definitely has indexes on all their foreign keys cough
0
Comments