~/talk

Slow database in your PHP stack? Don't blame the DBA!

Talkat PHPConf.Asia 2016 · 2016-08-23..08-24· [databases, php]
links:none on file
slides:none on file

Typical slow requests turn out to be application problems: tight loops produce N+1 query loop behavior that fires hundreds or even 500× more SQL calls per page, missing or misused indexes force full scans, and sending non‑bind statements defeats the DB statement cache and spikes CPU. Concrete fixes: collapse queries, add the right indexes, switch to bind parameters, and verify with EXPLAIN plan and a transaction tracer (Dynatrace or similar) to see actual statement counts, execution times, and whether the change reduces DB load.

AI-written summary · about

  1. 0:00Introduction
  2. 2:50Story
  3. 3:15Performance issues
  4. 3:33In the operation department
  5. 4:56Central Locking
  6. 5:10Timestamp Capture
  7. 5:25Load data
  8. 5:38Database performance
  9. 5:49Slow queries
  10. 6:06Blame game
  11. 6:18The problem
  12. 6:54Database performance hotspots
  13. 7:35Why is most time spent in the database
  14. 7:54Slow database queries
  15. 8:24Too many database queries
  16. 8:37Exercise
  17. 8:47ORM vs Hibernate
  18. 10:54Recall
  19. 11:13Database statements
  20. 11:39One query
  21. 11:59SQL
  22. 13:26Where clause
  23. 13:38Database load reduction
  24. 14:14Caching
  25. 15:05Query Cache
  26. 19:17Database Metric Dashboard
  27. 19:54How could that be done differently
  28. 20:26CPU usage
  29. 21:09Using indexes
  30. 22:04What are indexes
  31. 22:14What is an index
  32. 23:32Using a different column
  33. 24:21Indexes
  34. 25:47In clause
  35. 27:33Developer perspective
  36. 27:56Performance is essential
  37. 29:07Selfsufficient developers
  38. 30:53Single select statements
  39. 32:27Key takeaways
  40. 34:17Questions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.