Hi~ we are working on a small project which we want it to be public on line. Now our project runs well in the local, However when we just hoop it on line, the respond speed is so slow. we are all new to web development area, so Please provide some tips or suggestions .Thank you.
We use php, mysql as database and nginx as server.
Any advice is more than welcome. Thank you again.
A few tips:
Code Profiling
Use xdebug’s profiling option. This will give you insight into areas of your code that may need optimization.
SQL Profiling
Most of my projects use PostgreSQL, so I haven’t actually used this myself, but here’s some documentation on profiling your MySQL queries. Again, it’ll give you insight into areas of your SQL scripts that could use some optimization.
Investigate Cache Options
If you have a lot of database queries on your pages or a lot of PHP logic in your pages, it can be expensive to generate. There are a few different methods of cacheing and, while each method helps to solve load times, each aims to solve different specialized problems:
These would be the first steps that I’d take in optimizing one of my projects.
Edit:
TVK’s suggestion is also good for nailing down client side performance issues.