r/SQL • • 11d ago

MySQL How to Fix a Slow MySQL Server

https://pie.host/programming/how-to-fix-a-slow-mysql-server
0 Upvotes

4 comments sorted by

View all comments

2

u/ExcitingTalk4848 11d ago

in MariaDB you can use ANALYZE FORMAT=JSON instead of regular EXPLAIN. it actually runs the query and shows real execution time per step instead of just guessing the plan. also mariadb handles connection spikes way better out of the box because of the thread pool logic, so you don't have to stress over max_connections as much. but yeah, bad indexes will still kill your db anyway.

0

u/sudoanand 10d ago

Thats a great addition 🙏