~/talk

PHP's biggest bottleneck, MySQL

Talkat PHP UK Conference 2015 · 2015-02-18..02-20· [php, databases]
slides:none on file

Claim: PHP slowness often traces to MySQL not PHP. Practical fixes and measurements include adding indexes to cut a 25,000-row lookup from ~0.3–0.6s to ~0.006s, using covering index to avoid table reads, running EXPLAIN plan to see rows scanned, moving complex filtering into PHP (a 70,000-row great‑circle query halves from ~0.04s to ~0.02s), enabling query cache hits, choosing MyISAM vs InnoDB by read/write profile, enabling the slow query log and always benchmarking changes.

AI-written summary · about

  1. 0:00Introduction
  2. 1:06The problem with MySQL
  3. 2:09Simple fixes
  4. 3:32Indexes
  5. 4:23Simple example
  6. 7:46Using an index
  7. 9:29Storing indexes
  8. 11:29Explain
  9. 12:20Explain example
  10. 13:59Explain example 2
  11. 19:01What is query caching
  12. 20:32Configure query caching
  13. 22:52Choose the right storage engine
  14. 25:09Use a slow query log
  15. 26:55Example slow query log
  16. 28:09Slow query definition
  17. 29:32Understanding data types
  18. 33:32User table example
  19. 35:47Questions
  20. 42:28Procedures
~/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.