Including Functions.php

Time Before: 0.00272 seconds
Time After: 0.01920 seconds
Time Taken: 0.01649 seconds

Memory Before: 907.813 KB
Memory After: 2,299.102 KB
Memory Used: 1,391.289 KB

Connect to Database on Server: 192.168.0.20

Time Before: 0.01928 seconds
Time After: 0.01991 seconds
Time Taken: 0.00064 seconds

Memory Before: 2,299.063 KB
Memory After: 2,300.039 KB
Memory Used: 0.977 KB

SQL Query
SET @@sql_mode = ''

Time Before: 0.02011 seconds
Time After: 0.02022 seconds
Time Taken: 0.00011 seconds

Memory Before: 2,300.680 KB
Memory After: 2,301.203 KB
Memory Used: 0.523 KB

Datastore Setup
SQL Query
SELECT *
FROM datastore
WHERE title IN ('navdata','options','bitfields','attachmentcache','forumcache','usergroupcache','stylecache','languagecache','products','pluginlist','cron','profilefield','loadcache','noticecache','activitystream','routes')
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEdatastorerangePRIMARYPRIMARY52 16Using where

Time Before: 0.02080 seconds
Time After: 0.02234 seconds
Time Taken: 0.00153 seconds

Memory Before: 2,303.766 KB
Memory After: 2,304.617 KB
Memory Used: 0.852 KB

Time Before: 0.02027 seconds
Time After: 0.02469 seconds
Time Taken: 0.00442 seconds

Memory Before: 2,300.484 KB
Memory After: 3,011.664 KB
Memory Used: 711.180 KB

Session Handling
SQL Query
SELECT *
FROM session
WHERE userid = 0
	AND host = '192.168.0.1'
	AND idhash = 'ce294c5626a6c3c128594a952859491f'
LIMIT 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEsessionrefidhash,host,userid,guest_lookup,user_activityidhash32const2Using where

Time Before: 0.02673 seconds
Time After: 0.02715 seconds
Time Taken: 0.00042 seconds

Memory Before: 3,574.609 KB
Memory After: 3,575.227 KB
Memory Used: 0.617 KB

SQL Query
SELECT languageid,
			phrasegroup_global AS phrasegroup_global,
			phrasegroup_user AS phrasegroup_user,
			phrasegroup_search AS phrasegroup_search,
			phrasegroup_cprofilefield AS phrasegroup_cprofilefield,
			phrasegroup_reputationlevel AS phrasegroup_reputationlevel,
			phrasegroupinfo AS lang_phrasegroupinfo,
			options AS lang_options,
			languagecode AS lang_code,
			charset AS lang_charset,
			locale AS lang_locale,
			imagesoverride AS lang_imagesoverride,
			dateoverride AS lang_dateoverride,
			timeoverride AS lang_timeoverride,
			registereddateoverride AS lang_registereddateoverride,
			calformat1override AS lang_calformat1override,
			calformat2override AS lang_calformat2override,
			logdateoverride AS lang_logdateoverride,
			decimalsep AS lang_decimalsep,
			thousandsep AS lang_thousandsep
FROM language
WHERE languageid = 3
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLElanguagesystemPRIMARY   1 

Time Before: 0.02835 seconds
Time After: 0.02944 seconds
Time Taken: 0.00110 seconds

Memory Before: 3,586.820 KB
Memory After: 3,586.734 KB
Memory Used: -0.086 KB

Time Before: 0.02618 seconds
Time After: 0.02966 seconds
Time Taken: 0.00348 seconds

Memory Before: 3,567.289 KB
Memory After: 3,679.172 KB
Memory Used: 111.883 KB

SQL Query
SELECT MAX(permissions & 1) AS perm
FROM cms_permissions
WHERE nodeid = 1 AND usergroupid IN (1)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEcms_permissionsconstusergroupid,nodeidusergroupid8const,const1 

Time Before: 0.03564 seconds
Time After: 0.03575 seconds
Time Taken: 0.00012 seconds

Memory Before: 4,236.797 KB
Memory After: 4,237.313 KB
Memory Used: 0.516 KB

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /data/vhosts/rcw.ms/htdocs/forums/includes/class_database_explain.php:332) in /data/vhosts/rcw.ms/htdocs/forums/includes/facebook/facebook.php on line 49
SQL Query
SELECT *
FROM style
WHERE (styleid = 5 AND userselect = 1)
	OR styleid = 5
ORDER BY styleid ASC
LIMIT 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEstyleconstPRIMARYPRIMARY2const1 

Time Before: 0.04319 seconds
Time After: 0.04439 seconds
Time Taken: 0.00120 seconds

Memory Before: 4,714.352 KB
Memory After: 4,714.945 KB
Memory Used: 0.594 KB

End call of global.php: 0.046061992645264
SQL Query
SELECT profilefieldid, type, data, optional, memberlist, searchable
FROM profilefield
WHERE form = 0 
ORDER BY displayorder
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEprofilefieldALL    25Using where; Using filesort

Time Before: 0.06289 seconds
Time After: 0.06314 seconds
Time Taken: 0.00025 seconds

Memory Before: 6,700.352 KB
Memory After: 6,702.188 KB
Memory Used: 1.836 KB

SQL Query
SELECT COUNT(*) AS users
FROM user AS user


WHERE 1=1
	AND (user.usergroupid IN (-1,6,11,14,17,16,7,13,9,15,2,10,5,12))
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEuserrangeusergroupidusergroupid2 147550Using where; Using index

Time Before: 0.06428 seconds
Time After: 0.11523 seconds
Time Taken: 0.05096 seconds

Memory Before: 6,744.664 KB
Memory After: 6,745.148 KB
Memory Used: 0.484 KB

SQL Query
SELECT title, template
FROM template
WHERE templateid IN (61914,61916,61918,61917,61860,61861,61863,61869,61868,61840,55071,57273,57295,62316,0,0,6082,38961,42855,57213,38966,57292,5992,38968,38969,57230,62031,62305,45486,61981,53288,61979,61980,62335,0,0,62315,62276,62001,62002,62004,62005,62228,62347,62329,62279,62280,61828,61827,61831,61391,61659)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEtemplaterangePRIMARYPRIMARY4 49Using where

Time Before: 0.11798 seconds
Time After: 0.11900 seconds
Time Taken: 0.00102 seconds

Memory Before: 7,014.016 KB
Memory After: 7,015.391 KB
Memory Used: 1.375 KB

SQL Query
SELECT user.*,usertextfield.*,userfield.*, user.userid, options,
	IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, infractiongroupid
,IF((NOT(options & 1024) AND (user.usergroupid IN (-1,6,11,14,17,16,7,13,9,15,2,10,5,12) OR FIND_IN_SET('6', membergroupids) OR FIND_IN_SET('11', membergroupids) OR FIND_IN_SET('14', membergroupids) OR FIND_IN_SET('17', membergroupids) OR FIND_IN_SET('16', membergroupids) OR FIND_IN_SET('7', membergroupids) OR FIND_IN_SET('13', membergroupids) OR FIND_IN_SET('9', membergroupids) OR FIND_IN_SET('15', membergroupids) OR FIND_IN_SET('2', membergroupids) OR FIND_IN_SET('10', membergroupids) OR FIND_IN_SET('5', membergroupids) OR FIND_IN_SET('12', membergroupids))), 0, reputation) AS reputationscore
,avatar.avatarpath,NOT ISNULL(customavatar.userid) AS hascustomavatar,customavatar.dateline AS avatardateline, customavatar.width AS avwidth, customavatar.height AS avheight

 , IF((options & 512 AND user.userid <> 0), 0, lastactivity) AS lastvisittime 
, IF(YEAR(user.birthday_search) > 0 AND user.showbirthday IN (1,2) AND YEAR(user.birthday_search) < YEAR(CURDATE()), user.birthday_search, '1000-01-01') AS agesort


FROM user AS user
LEFT JOIN usertextfield AS usertextfield ON(usertextfield.userid=user.userid)
LEFT JOIN userfield AS userfield ON(userfield.userid=user.userid)
LEFT JOIN reputationlevel AS reputationlevel ON(user.reputationlevelid=reputationlevel.reputationlevelid) 
LEFT JOIN avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN customavatar AS customavatar ON(customavatar.userid = user.userid)



WHERE 1=1
	AND (user.usergroupid IN (-1,6,11,14,17,16,7,13,9,15,2,10,5,12))
	
ORDER BY user.username asc 
LIMIT 3200, 100
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEavatarsystemPRIMARY   0const row not found
1SIMPLEcustomavatarsystemPRIMARY   0const row not found
1SIMPLEuserindexusergroupidusername102 3300Using where
1SIMPLEusertextfieldeq_refPRIMARYPRIMARY4cmnt.user.userid1 
1SIMPLEuserfieldeq_refPRIMARYPRIMARY4cmnt.user.userid1 
1SIMPLEreputationleveleq_refPRIMARYPRIMARY4cmnt.user.reputationlevelid1Using index

Time Before: 0.13368 seconds
Time After: 0.20047 seconds
Time Taken: 0.06679 seconds

Memory Before: 7,206.141 KB
Memory After: 7,306.586 KB
Memory Used: 100.445 KB

SQL Query
UPDATE session
SET location = '/forums/memberlist.php?explain=1&page=33', badlocation = 0
WHERE sessionhash = 'b07c1473b68536787aa8ca6d07e6f4bd'

Time Before: 0.40353 seconds
Time After: 0.40384 seconds
Time Taken: 0.00032 seconds

Memory Before: 11,295.953 KB
Memory After: 11,296.195 KB
Memory Used: 0.242 KB

Page generated in 0.40065479278564 seconds with 11 queries, spending 0.12445044517517 doing MySQL queries and 0.27620434761047 doing PHP things.
Shutdown Queries:
DISABLED