Community Add-Ons

Maintainers: yoja
Add file to this package
Top » Other

Monitor performance mysql
for osCommerce Online Merchant v2.2

This little piece of code helps you to find which queries are slow. Of course
you can play a bit with MYSQL_SLOW_QUERIES but I like to have the info
about slow queries in the database so I can sort and find the slowest querie
in a flash. Also not everybody has access to their MySQL settings.

When you know which queries are slow you can have another look
at your database structure and add some indexes or change your code a bit.
Not all queries are that optimized.....

IMPORTANT:
* This contribution will not make your webshop faster! It only helps you find
bottlenecks.
* Please keep an eye on the size of the qlog table, if you run the script on a
slow server or set the log treshold low the size of the qlog table can grow very
big causing perfomance issues
* When you are ready debuggin set back the function to the old values or set the
treshold high that only queries about 2 seconds are logged.
* ONLY USE THIS CONTRIBUTION IF YOU KNOW WHAT INDEXES / QUERIES ARE, ELSE THIS
CONTRIBUTION IS OF NO USE TO YOU!

Legend:  Download   Report

Expand All / Collapse All

Monitor performance mysql v2.3 boschg 26 Dec 2010  

-----------------------------------
Monitor performance mysql v.2.3
Date: 2010-12-26
Author : Guenther Bosch (limex), solfd.com
Upgraded by: limex, based on previous modifications by lildog, kenle, biznetstar.com, yoja
-----------------------------------

This contrib solves all previous reported issues
PLUS:
- adds a config value to the admin to set the treshold value. Very useful to disable the logging. Set to 1000secs and so entry will be written. I promise :)
- Some of us saw errors when no logfile is there for opening depending on your php error reporting level. Now solved, as the existense of the file is checked before opened.
- layout improvements: CSS formats, rounding to 4 digits, added a trash icon

found error in last contrib nicola_fumagalli 8 Apr 2010  
Monitor performance mysql V2.1 escri2 16 Dec 2009  
Monitor performance mysql V2.0 lildog 4 Oct 2007  
Careful with this mod kenle 24 Aug 2007  
Add Delete Button lildog 20 Jul 2007  
MPM ( Mysql Performance Monitor) v1.0 biznetstar.com 4 Feb 2007  
Monitor performance mysql yoja 26 Nov 2006