Beyond PHP it's not just about the code
summary
Shows concrete failures and fixes: 200 per-search DB writes cause slave lag of hours and spikes up to 1,000 updates/sec, fixed by batching into extended INSERTs and temporarily using autocommit false; finds slow queries with pt-query-digest and EXPLAIN to choose proper B-tree vs hash indexes; uncovers a 98 Mbps link saturating a 100 Mbps switch transferring 700 GB/day; exposes cache race and 60s default PHP timeout, recommends cron refreshes, timeouts, Monolog and watching IO wait (iowait >10% signals disk bottleneck).
AI-written summary · about
chapters (31)
- 0:00Introduction and background
- 1:29Who is in the audience
- 2:13Beyond PHP and production issues
- 3:18Database indexing best practices
- 5:49When to add database indexes
- 6:10Detecting slow database queries
- 8:15Analyzing query performance with EXPLAIN
- 9:38Understanding EXPLAIN output types
- 10:00N+1 query problem explained
- 11:22Three client case studies overview
- 11:43Client X job search site issues
- 13:55Master-Slave lag causes
- 16:44How MySQL Master-Slave replication works
- 17:12Fixing Master-Slave lag with batch inserts
- 19:22Network transfer issues with Client Y
- 20:50Network capacity and data transfer limits
- 21:54Drupal hook system and data loading
- 22:35Network bottlenecks and caching
- 22:57Client Z news ticker race condition
- 24:18Timeout defaults and site crashes
- 25:44Fixing timeouts and race conditions
- 26:49Atomic file operations and race conditions
- 27:32Scheduling cache updates with cron
- 27:53Web services vs polling for data
- 28:15Logging best practices and tools
- 29:21FirePHP for debugging
- 29:43Monitoring logging performance
- 30:46Detecting IO bottlenecks on Linux
- 31:06Prioritizing IO fixes over code
- 31:28Summary and final advice
- 32:33Q&A on platform as a service
