Recently I’ve been doing quite a big project with php + mysql. And now I’m concerned about my mysql. What should I do to make my mysql as optimal as possible? Tell everything you know, I’ll be really very grateful.
Second question, I use one mysql query per page load which takes information from mysql. It’s quite a big query, because I take information from a few tables with a join. Maybe I should do something else?
Thank you.
Some top tips from MySQL Performance tips forge
Specific Query Performance:
execution plan
on!)
could use GROUP BY Insert
performance
sounds
have > ~2K records
SELECTing frequently updated data or
large sets of data
queries
select and where clause (try to
avoid in)
Scaling Performance Tips:
Network Performance Tips:
1. Paging/chunked data retrieval to limit
2. Don’t use SELECT *
3. Be wary of lots of small quick queries if a longer query can be more efficient
OS Performance Tips:
1. For Cluster. Start thinking about Cluster before you need them