i am using a connection.php file in which i am creating db connection using pear package. In all files i am calling connection.php file to connect through db. and in each query i am using db->prepare ans db->execute functions. Script is running fine with NO errors. my problem is that, this script is putting heavy load on the server because of which i am spending a lot on hosting. Can anyone help me to find that why my script is putting heavy load on the server. can I reduce server load?
What is your database size? Are mysql server and your website are in the same box? You can pm me some more details, may be I can help you with that.
Lots of times it's indeed a bad database structure that makes the load high.. show us your tables and or queries
1. What is the traffic like? 100 visitors, 1000 visitors,? 2. What does the connection function say? connect or pconnect? 3. Is the application custom made or a product?