Including Functions.php

Time Before: 0.00073 seconds
Time After: 0.00091 seconds
Time Taken: 0.00018 seconds

Memory Before: 519.180 KB
Memory After: 541.750 KB
Memory Used: 22.570 KB

Connect to Database on Server: localhost

Time Before: 0.00098 seconds
Time After: 0.00134 seconds
Time Taken: 0.00036 seconds

Memory Before: 541.688 KB
Memory After: 542.680 KB
Memory Used: 0.992 KB

SQL Query
SET @@sql_mode = ''

Time Before: 0.00152 seconds
Time After: 0.00167 seconds
Time Taken: 0.00015 seconds

Memory Before: 543.234 KB
Memory After: 543.758 KB
Memory Used: 0.523 KB

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

Time Before: 0.00252 seconds
Time After: 0.00289 seconds
Time Taken: 0.00037 seconds

Memory Before: 546.641 KB
Memory After: 547.445 KB
Memory Used: 0.805 KB

Time Before: 0.00172 seconds
Time After: 0.00534 seconds
Time Taken: 0.00362 seconds

Memory Before: 543.008 KB
Memory After: 1,545.766 KB
Memory Used: 1,002.758 KB

SQL Query
SELECT *
FROM datastore
WHERE title IN ('profilefield')
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLE       Impossible WHERE noticed after reading const tables

Time Before: 0.00654 seconds
Time After: 0.00663 seconds
Time Taken: 0.00009 seconds

Memory Before: 2,024.797 KB
Memory After: 2,025.320 KB
Memory Used: 0.523 KB

Session Handling
SQL Query
SELECT *
FROM session
WHERE userid = 0
	AND host = '54.224.234.8'
	AND idhash = '10c3cfcd4f2537a8f75d062ab10a4cf1'
LIMIT 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEsessionrefuser_activity,guest_lookupguest_lookup51const,const,const2Using where

Time Before: 0.00744 seconds
Time After: 0.00773 seconds
Time Taken: 0.00029 seconds

Memory Before: 2,042.227 KB
Memory After: 2,042.867 KB
Memory Used: 0.641 KB

SQL Query
SELECT languageid,
			phrasegroup_global AS phrasegroup_global,
			phrasegroup_wol AS phrasegroup_wol,
			phrasegroup_user AS phrasegroup_user,
			phrasegroup_messaging AS phrasegroup_messaging,
			phrasegroup_cprofilefield AS phrasegroup_cprofilefield,
			phrasegroup_reputationlevel AS phrasegroup_reputationlevel,
			phrasegroup_infractionlevel AS phrasegroup_infractionlevel,
			phrasegroup_posting AS phrasegroup_posting,
			phrasegroup_profilefield AS phrasegroup_profilefield,
			phrasegroup_activitystream AS phrasegroup_activitystream,
			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 = 2
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLElanguageconstPRIMARYPRIMARY2const1 

Time Before: 0.00910 seconds
Time After: 0.00934 seconds
Time Taken: 0.00024 seconds

Memory Before: 2,055.344 KB
Memory After: 2,055.016 KB
Memory Used: -0.328 KB

Time Before: 0.00688 seconds
Time After: 0.00953 seconds
Time Taken: 0.00265 seconds

Memory Before: 2,035.445 KB
Memory After: 2,214.414 KB
Memory Used: 178.969 KB

SQL Query
SELECT *
FROM datastore
WHERE title IN ('routes','profilefield')
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEdatastorerangePRIMARYPRIMARY50 2Using where

Time Before: 0.01001 seconds
Time After: 0.01009 seconds
Time Taken: 0.00008 seconds

Memory Before: 2,215.617 KB
Memory After: 2,216.180 KB
Memory Used: 0.563 KB

SQL Query
SELECT *
FROM style
WHERE (styleid = 3 AND userselect = 1)
	OR styleid = 3
ORDER BY styleid ASC
LIMIT 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEstyleconstPRIMARYPRIMARY2const1 

Time Before: 0.01669 seconds
Time After: 0.01691 seconds
Time Taken: 0.00022 seconds

Memory Before: 2,995.039 KB
Memory After: 2,995.633 KB
Memory Used: 0.594 KB

End call of global.php: 0.018270969390869
SQL Query
SELECT 
	userfield.*, usertextfield.*, user.*, UNIX_TIMESTAMP(passworddate) AS passworddate, user.languageid AS saved_languageid,
	IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline, customavatar.width AS avwidth, customavatar.height AS avheight, customavatar.height_thumb AS avheight_thumb, customavatar.width_thumb AS avwidth_thumb, customavatar.filedata_thumb, customprofilepic.userid AS profilepic, customprofilepic.dateline AS profilepicdateline, customprofilepic.width AS ppwidth, customprofilepic.height AS ppheight, sigpic.userid AS sigpic, sigpic.dateline AS sigpicdateline, sigpic.width AS sigpicwidth, sigpic.height AS sigpicheight, 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 avatar AS avatar ON (avatar.avatarid = user.avatarid) LEFT JOIN customavatar AS customavatar ON (customavatar.userid = user.userid) LEFT JOIN customprofilepic AS customprofilepic ON (user.userid = customprofilepic.userid) LEFT JOIN sigpic AS sigpic ON (user.userid = sigpic.userid) LEFT JOIN usercsscache AS usercsscache ON (user.userid = usercsscache.userid)

WHERE user.userid = 66
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEuserconstPRIMARYPRIMARY4const1 
1SIMPLEuserfieldconstPRIMARYPRIMARY4const1 
1SIMPLEusertextfieldconstPRIMARYPRIMARY4const1 
1SIMPLEavatarconstPRIMARYPRIMARY2const0unique row not found
1SIMPLEcustomavatarconstPRIMARYPRIMARY4const1 
1SIMPLEcustomprofilepicconstPRIMARYPRIMARY4const0unique row not found
1SIMPLEsigpicconstPRIMARYPRIMARY4const0unique row not found
1SIMPLEusercsscacheconstPRIMARYPRIMARY4const0unique row not found

Time Before: 0.01942 seconds
Time After: 0.02027 seconds
Time Taken: 0.00085 seconds

Memory Before: 3,693.156 KB
Memory After: 3,693.219 KB
Memory Used: 0.063 KB

SQL Query
SELECT title, template
FROM template
WHERE templateid IN (576,605,566,567,569,575,574,402,403,404,3,4,405,158,159,406,411,407,408,409,412,413,414,415,416,467,469,471,473,475,109,522,521,524,525,528,529,771,941,947,580,578,581,583,582,584,585,586,587,588,589,590,595,592,594,591,593,604,606,607,616,598,609,610,611,612,614,577,603,608,617,613,619,618,615,695,1315,1313,1420,1051,0,0,429,423,422,1700,428,1694,1724,430,431,1688,737,1033,1414,1417,1415,685,1416,1049,0,0,1012,1014,707,708,1418,711,934,976,975,1025,977,534,533,537,1365,1363,1322,1323,1370,1409,1459,1458,1460,1472)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEtemplaterangePRIMARYPRIMARY4 123Using where

Time Before: 0.02329 seconds
Time After: 0.02369 seconds
Time Taken: 0.00041 seconds

Memory Before: 4,168.227 KB
Memory After: 4,171.117 KB
Memory Used: 2.891 KB

SQL Query
SELECT template
FROM template
WHERE templateid = 1471
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEtemplateconstPRIMARYPRIMARY4const1 

Time Before: 0.02679 seconds
Time After: 0.02688 seconds
Time Taken: 0.00008 seconds

Memory Before: 4,460.922 KB
Memory After: 4,461.469 KB
Memory Used: 0.547 KB

SQL Query
SELECT template
FROM template
WHERE templateid = 1470
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEtemplateconstPRIMARYPRIMARY4const1 

Time Before: 0.02762 seconds
Time After: 0.02770 seconds
Time Taken: 0.00008 seconds

Memory Before: 4,471.977 KB
Memory After: 4,472.523 KB
Memory Used: 0.547 KB

SQL Query
SELECT MAX(dateline) AS lastpost, COUNT(*) AS total
FROM usernote AS usernote
WHERE userid = 66
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEusernoterefuseriduserid4const1 

Time Before: 0.03191 seconds
Time After: 0.03200 seconds
Time Taken: 0.00009 seconds

Memory Before: 4,469.867 KB
Memory After: 4,470.391 KB
Memory Used: 0.523 KB

SQL Query
SELECT blockid, requirement
FROM profileblockprivacy
WHERE userid = 66
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEprofileblockprivacyrefPRIMARYPRIMARY4const1 

Time Before: 0.03268 seconds
Time After: 0.03277 seconds
Time Taken: 0.00009 seconds

Memory Before: 4,489.617 KB
Memory After: 4,490.133 KB
Memory Used: 0.516 KB

SQL Query
SELECT pf.profilefieldcategoryid, pfc.location, pf.*
FROM profilefield AS pf
LEFT JOIN profilefieldcategory AS pfc ON(pfc.profilefieldcategoryid = pf.profilefieldcategoryid)
WHERE pf.form = 0 
		AND pf.hidden = 0
ORDER BY pfc.displayorder, pf.displayorder
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEpfALL    4Using where; Using temporary; Using filesort
1SIMPLEpfcALLPRIMARY   1Using where; Using join buffer (Block Nested Loop)

Time Before: 0.03329 seconds
Time After: 0.03338 seconds
Time Taken: 0.00010 seconds

Memory Before: 4,490.383 KB
Memory After: 4,491.398 KB
Memory Used: 1.016 KB

SQL Query
SELECT * FROM customprofile WHERE userid='-1'
/**customprofile- member**/
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEcustomprofilerefuseriduserid4const1 

Time Before: 0.03467 seconds
Time After: 0.03479 seconds
Time Taken: 0.00012 seconds

Memory Before: 4,630.703 KB
Memory After: 4,631.227 KB
Memory Used: 0.523 KB

SQL Query
SELECT user.*, (user.options & 512) AS invisible , avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustom, customavatar.dateline AS avatardateline, customavatar.filedata_thumb, customavatar.height AS avheight, customavatar.width AS avwidth, customavatar.width_thumb AS avwidth_thumb, customavatar.height_thumb AS avheight_thumb
	
FROM userlist AS userlist
INNER JOIN user AS user ON (user.userid = userlist.relationid)
LEFT JOIN avatar AS avatar ON (avatar.avatarid = user.avatarid)
LEFT JOIN customavatar AS customavatar ON (customavatar.userid = user.userid) 

WHERE userlist.userid = 66
	AND userlist.type = 'buddy'
	AND userlist.friend = 'yes'
	
ORDER BY RAND()
LIMIT 0, 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEuserlistrefPRIMARY,relationid,useridPRIMARY4const1Using where; Using temporary; Using filesort
1SIMPLEusereq_refPRIMARYPRIMARY4rolandviet_rlvn.userlist.relationid1 
1SIMPLEavatareq_refPRIMARYPRIMARY2rolandviet_rlvn.user.avatarid1Using where
1SIMPLEcustomavatareq_refPRIMARYPRIMARY4rolandviet_rlvn.userlist.relationid1 

Time Before: 0.03671 seconds
Time After: 0.03802 seconds
Time Taken: 0.00131 seconds

Memory Before: 4,644.734 KB
Memory After: 4,645.328 KB
Memory Used: 0.594 KB

SQL Query
UPDATE user SET
	profilevisits = profilevisits + 1
WHERE userid = 66

Time Before: 0.03934 seconds
Time After: 0.04862 seconds
Time Taken: 0.00928 seconds

Memory Before: 4,649.438 KB
Memory After: 4,649.766 KB
Memory Used: 0.328 KB

SQL Query
SELECT user.userid, user.username, user.usergroupid, user.displaygroupid, profilevisitor.visible, user.infractiongroupid
	
FROM profilevisitor AS profilevisitor
INNER JOIN user AS user ON (user.userid = profilevisitor.visitorid)

WHERE profilevisitor.userid = 66
	 AND (visible = 1 OR profilevisitor.visitorid = 0)
	
ORDER BY profilevisitor.dateline DESC
LIMIT 10
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEprofilevisitorrefPRIMARY,useriduserid4const11Using where; Using index; Using filesort
1SIMPLEusereq_refPRIMARYPRIMARY4rolandviet_rlvn.profilevisitor.visitorid1 

Time Before: 0.04952 seconds
Time After: 0.05005 seconds
Time Taken: 0.00052 seconds

Memory Before: 4,650.742 KB
Memory After: 4,651.508 KB
Memory Used: 0.766 KB

SQL Query
SELECT socialgroup.groupid, socialgroup.name, socialgroup.description, socialgroup.dateline, sgicon.dateline AS icondateline,
	sgicon.thumbnail_width AS iconthumb_width, sgicon.thumbnail_height AS iconthumb_height
FROM socialgroupmember AS socialgroupmember
INNER JOIN socialgroup AS socialgroup ON
	(socialgroup.groupid = socialgroupmember.groupid)
LEFT JOIN socialgroupicon AS sgicon ON sgicon.groupid = socialgroup.groupid
WHERE
	socialgroupmember.userid = 66
	AND socialgroupmember.type = 'member'
ORDER BY socialgroup.name
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEsocialgroupmemberrefPRIMARY,groupid,useriduserid5const,const1Using where; Using index; Using temporary; Using filesort
1SIMPLEsocialgroupeq_refPRIMARYPRIMARY4rolandviet_rlvn.socialgroupmember.groupid1 
1SIMPLEsgiconeq_refPRIMARYPRIMARY4rolandviet_rlvn.socialgroupmember.groupid1 

Time Before: 0.05357 seconds
Time After: 0.05367 seconds
Time Taken: 0.00010 seconds

Memory Before: 4,679.047 KB
Memory After: 4,679.078 KB
Memory Used: 0.031 KB

SQL Query
SELECT SQL_CALC_FOUND_ROWS
	visitormessage.*, user.*, visitormessage.ipaddress AS messageipaddress
	
	
	,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 = 66
	AND (visitormessage.state IN ('visible'))

	
ORDER BY visitormessage.dateline DESC
LIMIT 0, 10
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEvisitormessagerefuseriduserid4const1Using where
1SIMPLEusereq_refPRIMARYPRIMARY4rolandviet_rlvn.visitormessage.postuserid1 
1SIMPLEavatareq_refPRIMARYPRIMARY2rolandviet_rlvn.user.avatarid1Using where
1SIMPLEcustomavatareq_refPRIMARYPRIMARY4rolandviet_rlvn.user.userid1 

Time Before: 0.05460 seconds
Time After: 0.05518 seconds
Time Taken: 0.00058 seconds

Memory Before: 4,749.914 KB
Memory After: 4,749.641 KB
Memory Used: -0.273 KB

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

Time Before: 0.05552 seconds
Time After: 0.05562 seconds
Time Taken: 0.00010 seconds

Memory Before: 4,747.234 KB
Memory After: 4,747.883 KB
Memory Used: 0.648 KB

SQL Query
SELECT COUNT(*) AS messages, MAX(visitormessage.dateline) AS dateline
FROM visitormessage AS visitormessage

WHERE visitormessage.userid = 66
	AND (visitormessage.state IN ('visible') OR (visitormessage.postuserid = 0 AND state = 'moderation'))
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEvisitormessagerefpostuserid,useriduserid4const1Using index condition; Using where

Time Before: 0.05630 seconds
Time After: 0.05639 seconds
Time Taken: 0.00008 seconds

Memory Before: 4,786.367 KB
Memory After: 4,786.711 KB
Memory Used: 0.344 KB

SQL Query
SELECT COUNT(*) AS count
FROM user
WHERE referrerid = 66
	AND usergroupid NOT IN (3,4)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEuserrefusergroupid,referreridreferrerid4const1Using where

Time Before: 0.05699 seconds
Time After: 0.05735 seconds
Time Taken: 0.00037 seconds

Memory Before: 4,773.188 KB
Memory After: 4,773.711 KB
Memory Used: 0.523 KB

SQL Query
SELECT user.*, (user.options & 512) AS invisible , avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustom, customavatar.dateline AS avatardateline, customavatar.filedata_thumb, customavatar.height AS avheight, customavatar.width AS avwidth, customavatar.width_thumb AS avwidth_thumb, customavatar.height_thumb AS avheight_thumb
	
FROM userlist AS userlist
INNER JOIN user AS user ON (user.userid = userlist.relationid)
LEFT JOIN avatar AS avatar ON (avatar.avatarid = user.avatarid)
LEFT JOIN customavatar AS customavatar ON (customavatar.userid = user.userid) 

WHERE userlist.userid = 66
	AND userlist.type = 'buddy'
	AND userlist.friend = 'yes'
	
ORDER BY user.username ASC
LIMIT 0, 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEuserlistrefPRIMARY,relationid,useridPRIMARY4const1Using where; Using temporary; Using filesort
1SIMPLEusereq_refPRIMARYPRIMARY4rolandviet_rlvn.userlist.relationid1 
1SIMPLEavatareq_refPRIMARYPRIMARY2rolandviet_rlvn.user.avatarid1Using where
1SIMPLEcustomavatareq_refPRIMARYPRIMARY4rolandviet_rlvn.userlist.relationid1 

Time Before: 0.06350 seconds
Time After: 0.06484 seconds
Time Taken: 0.00135 seconds

Memory Before: 4,807.078 KB
Memory After: 4,807.648 KB
Memory Used: 0.570 KB

SQL Query
SELECT relationid
FROM userlist
WHERE
	userid IN (66)
		AND
	type = 'buddy'
		AND
	friend = 'yes'
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEuserlistrefPRIMARY,useridPRIMARY4const1Using where

Time Before: 0.06707 seconds
Time After: 0.06716 seconds
Time Taken: 0.00008 seconds

Memory Before: 4,825.828 KB
Memory After: 4,826.336 KB
Memory Used: 0.508 KB

SQL Query
SELECT stream.*, type.section, type.type
FROM activitystream AS stream
LEFT JOIN activitystreamtype AS type ON (stream.typeid = type.typeid)
WHERE stream.dateline <> 0 AND stream.dateline <= 1524192046 AND stream.userid IN (66,2791)
ORDER BY dateline DESC
LIMIT 0, 30
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEstreamrangedateline,useriduserid8 4Using index condition; Using filesort
1SIMPLEtypeeq_refPRIMARYPRIMARY4rolandviet_rlvn.stream.typeid1 

Time Before: 0.06780 seconds
Time After: 0.06822 seconds
Time Taken: 0.00042 seconds

Memory Before: 4,832.766 KB
Memory After: 4,833.078 KB
Memory Used: 0.313 KB

SQL Query
SELECT *
FROM navigation
WHERE state & 4 = 0
ORDER BY navtype, displayorder
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEnavigationALL    41Using where; Using filesort

Time Before: 0.07093 seconds
Time After: 0.07104 seconds
Time Taken: 0.00011 seconds

Memory Before: 4,831.641 KB
Memory After: 4,836.633 KB
Memory Used: 4.992 KB

SQL Query
SELECT * FROM customprofile WHERE userid='-1'
/**customprofile- member**/
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEcustomprofilerefuseriduserid4const1 

Time Before: 0.07485 seconds
Time After: 0.07497 seconds
Time Taken: 0.00011 seconds

Memory Before: 4,980.164 KB
Memory After: 4,980.703 KB
Memory Used: 0.539 KB

SQL Query
UPDATE session
SET lastactivity = 1524192046, location = 'member.php?u=66', badlocation = 0
WHERE sessionhash = 'df3268203545faa49872c3a21ce765cf'

Time Before: 0.07891 seconds
Time After: 0.07920 seconds
Time Taken: 0.00029 seconds

Memory Before: 5,241.031 KB
Memory After: 5,241.281 KB
Memory Used: 0.250 KB

Page generated in 0.077800989151001 seconds with 29 queries, spending 0.018329858779907 doing MySQL queries and 0.059471130371094 doing PHP things.
Shutdown Queries:
DISABLED