Display DB queries and so on..

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
commanderx
Regular
Posts: 59
Joined: Mon Apr 18, 2005 8:18 am
Contact:

Display DB queries and so on..

Post by commanderx »

Hi,

i just installed Turck MMcache on my host, and now i want to know if its usefull.
So...is it possible to include a little Statistic in the output?
Maybe at the bottom?
I had this in Wordpress and its like this from a Woltlab Burning Board Site:

Seitenaufbauzeit: 1.029s » Datenbankabfragezeit: 0.945s » Datenbankabfragen: 51

Greetings...
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Display DB queries and so on..

Post by garvinhicking »

You should look at the Turck MMCache output which is already fine.

The problem with the extra messages printed by those tools is that it is not helpful at all, as the page generation time is also bandwidth dependant. You can edit your index.php file and set the top $global_debug variable to true which will output those stats.

The number of DB queries is not calculated, as it's not needed and would cost extra performance. The number would also not be that terribly helpful.

Actually the best way to benchmark those things is to use extra debuggers like xdebug or apd, which can all better display the impact of the cache.

Btw, BTW, Turck or APC or tools like that hugely (positively) impact the performance of s9y

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
commanderx
Regular
Posts: 59
Joined: Mon Apr 18, 2005 8:18 am
Contact:

Post by commanderx »

Thanks for your reply.
Ill ask my good friend google for those debuggers :).
Post Reply