Reputation: 161
I had developed a site in Zend Framework 1.11(Mysql Database).It is very slow.My application works on social media posts like hootsuite. But it is very slow.How to improve it. My database is very large(In testing only).My site is not launched.Please help me to improve performance.
Upvotes: 1
Views: 222
Reputation: 1649
Add this to your application.ini
:
resources.db.params.profiler.enabled = true
resources.db.params.profiler.class = Zend_Db_Profiler_Firebug
This way you can use Firebug to see all queries done to DB and their times to see if they are fast enough.
Then you can use XDebug to profile your PHP. It can generate report which you can view later in KCachegrind and see where your PHP code spends most of it's time.
Upvotes: 0
Reputation: 5772
I agree with what has been said, I would add that you can use stored procedures, it is better that it is the database that works. :)
For example, I explained to another question.
Upvotes: 0
Reputation: 3986
You can check with the following points, if it will work for you:
Hope the above points will help you :)
Upvotes: 1
Reputation: 753
This is a very general question, but the most important issue for performance is your database. you can use memcahched or filecache .
Upvotes: 0
Reputation: 1174
Some general approaches:
To get more specific, you're going to want to figure out where your bottlenecks are. You can just observe your server while the application is running / slow (vmstat, iostat, top, etc) and make some educated guesses, or you can try using one of the many profiling tools that actually expose what your code is spending time and resources doing.
Upvotes: 2