Including Functions.php

Time Before: 0.00339 seconds
Time After: 0.02159 seconds
Time Taken: 0.01819 seconds

Memory Before: 710.445 KB
Memory After: 2,101.953 KB
Memory Used: 1,391.508 KB

Connect to Database on Server: 192.168.0.20

Time Before: 0.02170 seconds
Time After: 0.02222 seconds
Time Taken: 0.00052 seconds

Memory Before: 2,101.914 KB
Memory After: 2,102.891 KB
Memory Used: 0.977 KB

SQL Query
SET @@sql_mode = ''

Time Before: 0.02262 seconds
Time After: 0.02273 seconds
Time Taken: 0.00012 seconds

Memory Before: 2,103.531 KB
Memory After: 2,104.070 KB
Memory Used: 0.539 KB

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

Time Before: 0.02340 seconds
Time After: 0.02550 seconds
Time Taken: 0.00210 seconds

Memory Before: 2,106.859 KB
Memory After: 2,107.734 KB
Memory Used: 0.875 KB

Time Before: 0.02279 seconds
Time After: 0.02956 seconds
Time Taken: 0.00677 seconds

Memory Before: 2,103.352 KB
Memory After: 3,183.766 KB
Memory Used: 1,080.414 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.03200 seconds
Time After: 0.03236 seconds
Time Taken: 0.00036 seconds

Memory Before: 3,746.594 KB
Memory After: 3,747.211 KB
Memory Used: 0.617 KB

SQL Query
SELECT languageid,
			phrasegroup_global AS phrasegroup_global,
			phrasegroup_user AS phrasegroup_user,
			phrasegroup_posting AS phrasegroup_posting,
			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.03359 seconds
Time After: 0.03466 seconds
Time Taken: 0.00107 seconds

Memory Before: 3,758.469 KB
Memory After: 3,758.484 KB
Memory Used: 0.016 KB

Time Before: 0.03138 seconds
Time After: 0.03483 seconds
Time Taken: 0.00345 seconds

Memory Before: 3,739.273 KB
Memory After: 3,858.992 KB
Memory Used: 119.719 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.04023 seconds
Time After: 0.04039 seconds
Time Taken: 0.00015 seconds

Memory Before: 4,451.094 KB
Memory After: 4,451.609 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.04696 seconds
Time After: 0.04819 seconds
Time Taken: 0.00123 seconds

Memory Before: 4,928.867 KB
Memory After: 4,929.461 KB
Memory Used: 0.594 KB

End call of global.php: 0.049807071685791
SQL Query
SELECT 
	userfield.*, usertextfield.*, user.*, UNIX_TIMESTAMP(passworddate) AS passworddate, user.languageid AS saved_languageid,
	IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, usercsscache.cachedcss, IF(usercsscache.cachedcss IS NULL, 0, 1) AS hascachedcss, usercsscache.buildpermissions AS cssbuildpermissions
	
FROM user AS user
LEFT JOIN userfield AS userfield ON (user.userid = userfield.userid)
LEFT JOIN usertextfield AS usertextfield ON (usertextfield.userid = user.userid) LEFT JOIN usercsscache AS usercsscache ON (user.userid = usercsscache.userid)

WHERE user.userid = 104257 LIMIT 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEuserconstPRIMARYPRIMARY4const1 
1SIMPLEuserfieldconstPRIMARYPRIMARY4const1 
1SIMPLEusertextfieldconstPRIMARYPRIMARY4const1 
1SIMPLEusercsscacheconstPRIMARYPRIMARY4const0unique row not found

Time Before: 0.06276 seconds
Time After: 0.06354 seconds
Time Taken: 0.00079 seconds

Memory Before: 6,628.523 KB
Memory After: 6,629.469 KB
Memory Used: 0.945 KB

SQL Query
SELECT 
	userfield.*, usertextfield.*, user.*, UNIX_TIMESTAMP(passworddate) AS passworddate, user.languageid AS saved_languageid,
	IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, usercsscache.cachedcss, IF(usercsscache.cachedcss IS NULL, 0, 1) AS hascachedcss, usercsscache.buildpermissions AS cssbuildpermissions
	
FROM user AS user
LEFT JOIN userfield AS userfield ON (user.userid = userfield.userid)
LEFT JOIN usertextfield AS usertextfield ON (usertextfield.userid = user.userid) LEFT JOIN usercsscache AS usercsscache ON (user.userid = usercsscache.userid)

WHERE user.userid = 111673 LIMIT 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEuserconstPRIMARYPRIMARY4const1 
1SIMPLEuserfieldconstPRIMARYPRIMARY4const1 
1SIMPLEusertextfieldconstPRIMARYPRIMARY4const1 
1SIMPLEusercsscacheconstPRIMARYPRIMARY4const0unique row not found

Time Before: 0.06496 seconds
Time After: 0.06571 seconds
Time Taken: 0.00074 seconds

Memory Before: 6,658.188 KB
Memory After: 6,659.133 KB
Memory Used: 0.945 KB

SQL Query
SELECT requirement
FROM profileblockprivacy
WHERE userid = 104257
	AND blockid = 'visitor_messaging'
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLE       Impossible WHERE noticed after reading const tables

Time Before: 0.06683 seconds
Time After: 0.06708 seconds
Time Taken: 0.00025 seconds

Memory Before: 6,719.234 KB
Memory After: 6,719.719 KB
Memory Used: 0.484 KB

SQL Query
SELECT requirement
FROM profileblockprivacy
WHERE userid = 111673
	AND blockid = 'visitor_messaging'
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLE       Impossible WHERE noticed after reading const tables

Time Before: 0.06760 seconds
Time After: 0.06785 seconds
Time Taken: 0.00025 seconds

Memory Before: 6,719.234 KB
Memory After: 6,719.719 KB
Memory Used: 0.484 KB

SQL Query
(
		SELECT
			visitormessage.*, visitormessage.dateline AS pmdateline, user.*, visitormessage.ipaddress AS messageipaddress, visitormessage.userid AS profileuserid
			
			,avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight, customavatar.width_thumb AS avwidth_thumb, customavatar.height_thumb AS avheight_thumb, filedata_thumb, NOT ISNULL(customavatar.userid) AS hascustom
			
		FROM visitormessage AS visitormessage
		LEFT JOIN user AS user ON (visitormessage.postuserid = user.userid)
		LEFT JOIN avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN customavatar AS customavatar ON(customavatar.userid = user.userid)
		
		
		WHERE visitormessage.userid = 104257 AND visitormessage.postuserid = 111673 AND visitormessage.state IN ('visible')
		
	)
	UNION
	(
		SELECT
			visitormessage.*, visitormessage.dateline AS pmdateline, user.*, visitormessage.ipaddress AS messageipaddress, visitormessage.userid AS profileuserid
			
			,avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight, customavatar.width_thumb AS avwidth_thumb, customavatar.height_thumb AS avheight_thumb, filedata_thumb, NOT ISNULL(customavatar.userid) AS hascustom
			
		FROM visitormessage AS visitormessage
		LEFT JOIN user AS user ON (visitormessage.postuserid = user.userid)
		LEFT JOIN avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN customavatar AS customavatar ON(customavatar.userid = user.userid)
		
		
		WHERE visitormessage.userid = 111673 AND visitormessage.postuserid = 104257 AND visitormessage.state IN ('visible')
		
	)
	ORDER BY pmdateline DESC
	LIMIT 0, 10

Time Before: 0.06805 seconds
Time After: 0.07023 seconds
Time Taken: 0.00218 seconds

Memory Before: 6,728.836 KB
Memory After: 6,728.508 KB
Memory Used: -0.328 KB

SQL Query
SELECT FOUND_ROWS()
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLE       No tables used

Time Before: 0.07064 seconds
Time After: 0.07079 seconds
Time Taken: 0.00015 seconds

Memory Before: 6,724.984 KB
Memory After: 6,725.633 KB
Memory Used: 0.648 KB

SQL Query
SELECT title, template
FROM template
WHERE templateid IN (47496,61816,61818,61819,61822,61823,61989,61889,61909,61910,61911,61913,62262,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 52Using where

Time Before: 0.07592 seconds
Time After: 0.07709 seconds
Time Taken: 0.00117 seconds

Memory Before: 7,170.109 KB
Memory After: 7,171.531 KB
Memory Used: 1.422 KB

SQL Query
UPDATE session
SET location = '/forums/converse.php?explain=1&u=104257&u2=111673', badlocation = 0
WHERE sessionhash = 'b07c1473b68536787aa8ca6d07e6f4bd'

Time Before: 0.09178 seconds
Time After: 0.09209 seconds
Time Taken: 0.00031 seconds

Memory Before: 7,681.945 KB
Memory After: 7,682.172 KB
Memory Used: 0.227 KB

Page generated in 0.090824127197266 seconds with 14 queries, spending 0.011389493942261 doing MySQL queries and 0.079434633255005 doing PHP things.
Shutdown Queries:
DISABLED