Myspace Layouts - Myspace Layouts - Reference 2007 - Find jobs - Number Ones

PDA

View Full Version : Optimisation


rochow
Apr 8th 2009, 9:53 pm
After finally being able to make things work, I'm starting to learn "best practices" rather than "yay it works! it'll do". One thing I'm always tightass on is optimisation.

How do you guys test your PHP + SQL load time? I've found some classes, some of which had hundreds of files (wtf, that'll add seconds to my load time in itself). Surely there is an easy way! I have a start/end time by default in my coding which is a rough indication; however, it changes every time on refresh so its fairly vague and inconclusive.

Interested to hear how you guys test :)

Weirfire
Apr 9th 2009, 4:09 am
If you use t he EXPLAIN function this can show you vital info about how queries operate and more importantly how efficient a particular solution is.

I would recommend having a good read through this page;

http://dev.mysql.com/doc/refman/5.0/en/optimization.html


It will provide a wealth of information on what you're looking for. :)