Possible Duplicate:
Tactics for using PHP in a high-load site
I am new here. This is the first time.
One of my sites (which is in php/mysql) is getting good traffic and I upgraded the hosting to VPS too. At peak hours, it gets 7-8 users per hour and almost 50k database requests. But still I am having performance issues at peak hours. This site does not database transaction. It just gives xml feeds for mobile apps from mysql server (one way traffic, no data comes from users). Now I talked to my hosting about speed and they talked about few things and I desperately need your opinions for this-
- They talked about installing memcached. Will just installing it solve problem? How do I use this? Because they talked as if just installing this will solve the issue.
- Mysql query cache. I know how to use this. Will it improve performace. Most of my users request for 3-4 results( 70% traffic).
- Since all the queries are select queries only, how can I optimize so that mysql tables are not locked while getting results. Or any other suggestion I can get from you.
Thanks a lot for your time and help.