~/talk

Optimization Techniques in MySQL

Talkat Percona Community Live 2022 · 2022-06-21..06-23· [databases]
links:none on file
slides:none on file

MySQL 8 removes the query cache and relies on performance_schema plus Percona PMM for query analytics and top‑time digests, with pt‑query‑digest as an alternative. Key tuning specifics: set innodb_buffer_pool_size to roughly 70–80% of RAM on a dedicated DB, use multiple buffer_pool_instances when pool >1GB, size innodb_log_file_size to hold about an hour of redo (tradeoff: longer recovery), raise max_connections above the 151 default only after memory budgeting, increase tmp_table_size to avoid on‑disk temp tables, and apply OS tweaks (jemalloc, swappiness=1, disable THP). Test one change at a time.

AI-written summary · about

  1. 0:00Start
  2. 1:00Agenda
  3. 2:41Mysql Architecture
  4. 3:28How Mysql Optimizes and Executes the Queries
  5. 4:48Application Layer
  6. 5:17Query Cache
  7. 8:53Storage Engine
  8. 9:31Measuring the Performance
  9. 10:04How Does Measuring Help Us
  10. 10:50Best Tools Available To Monitor Is Mysql
  11. 11:22Monitoring Metrics
  12. 13:16Event Statement Summary by Digest
  13. 16:05Query Analyzer
  14. 19:41How Tables Are Joined
  15. 21:10Clustered Index
  16. 24:00Query Optimization
  17. 24:20Best Practices
  18. 30:50Buffer Pool
  19. 35:25Buffer Pool Miss Ratio
  20. 39:44Innodb Log File Size
  21. 44:14Max Connection
  22. 46:43Temp Table Size
  23. 48:13Open Files Limit
  24. 50:52Os Optimization Tips
  25. 54:24Conclusion
~/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.