Including Functions.php

Time Before: 0.00470 seconds
Time After: 0.01210 seconds
Time Taken: 0.00740 seconds

Memory Before: 2,204.555 KB
Memory After: 3,648.031 KB
Memory Used: 1,443.477 KB

Connect to Database on Server: localhost

Time Before: 0.01221 seconds
Time After: 0.01430 seconds
Time Taken: 0.00209 seconds

Memory Before: 3,647.914 KB
Memory After: 3,648.703 KB
Memory Used: 0.789 KB

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

Time Before: 0.01514 seconds
Time After: 0.01553 seconds
Time Taken: 0.00040 seconds

Memory Before: 3,651.742 KB
Memory After: 3,652.094 KB
Memory Used: 0.352 KB

Time Before: 0.01449 seconds
Time After: 0.01711 seconds
Time Taken: 0.00262 seconds

Memory Before: 3,648.195 KB
Memory After: 4,176.797 KB
Memory Used: 528.602 KB

Session Handling
SQL Query
SELECT *
FROM session
WHERE userid = 0
	AND host = '54.92.182.0'
	AND idhash = '2fa7ffa12a9bfc7aff5436a63e923205'
LIMIT 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEsessionALL    327Using where

Time Before: 0.01799 seconds
Time After: 0.01820 seconds
Time Taken: 0.00021 seconds

Memory Before: 4,227.961 KB
Memory After: 4,228.375 KB
Memory Used: 0.414 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_infractionlevel AS phrasegroup_infractionlevel,
			phrasegroup_posting AS phrasegroup_posting,
			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 = 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLElanguagesystemPRIMARY   1 

Time Before: 0.01895 seconds
Time After: 0.01931 seconds
Time Taken: 0.00036 seconds

Memory Before: 4,239.023 KB
Memory After: 4,238.680 KB
Memory Used: -0.344 KB

Time Before: 0.01758 seconds
Time After: 0.01954 seconds
Time Taken: 0.00196 seconds

Memory Before: 4,223.602 KB
Memory After: 4,356.250 KB
Memory Used: 132.648 KB

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

Time Before: 0.02385 seconds
Time After: 0.02406 seconds
Time Taken: 0.00020 seconds

Memory Before: 4,481.609 KB
Memory After: 4,482.055 KB
Memory Used: 0.445 KB

SQL Query
SELECT title, template
FROM template
WHERE templateid IN (2152,2173,2141,2142,2144,2151,2150,2047,2049,2051,2053,2087,2086,2088,2089,2323,2321,2476,2482,2154,2155,2156,2157,2158,2159,2160,2161,2162,2163,2167,2165,2166,2164,2168,2172,2174,2175,2184,2178,2179,2180,2181,2183,2153,2171,2176,2185,2187,2186,2182,2354,2373,3538,3542,3540,2022,2021,2023,2018,2017,2294,3443,2246,2247,2248,2514,2517,2526,2267,2268,2269,2270,2468,2531,2530,2532,2535)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEtemplaterangePRIMARYPRIMARY4 77Using index condition

Time Before: 0.02498 seconds
Time After: 0.02577 seconds
Time Taken: 0.00080 seconds

Memory Before: 4,668.031 KB
Memory After: 4,668.133 KB
Memory Used: 0.102 KB

End call of global.php: 0.027332067489624
SQL Query
SELECT 
	userfield.*, usertextfield.*, user.*, UNIX_TIMESTAMP(passworddate) AS passworddate, user.languageid AS saved_languageid,
	IF(user.displaygroupid=0, user.usergroupid, user.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 = 1567
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEavatarsystemPRIMARY   0const row not found
1SIMPLEusercsscachesystemPRIMARY   0const row not found
1SIMPLEuserconstPRIMARYPRIMARY4const1 
1SIMPLEuserfieldconstPRIMARYPRIMARY4const1 
1SIMPLEusertextfieldconstPRIMARYPRIMARY4const1 
1SIMPLEcustomavatarconstPRIMARYPRIMARY4const0unique row not found
1SIMPLEcustomprofilepicconstPRIMARYPRIMARY4const1 
1SIMPLEsigpicsystemPRIMARY   1 

Time Before: 0.03473 seconds
Time After: 0.03529 seconds
Time Taken: 0.00055 seconds

Memory Before: 5,797.695 KB
Memory After: 5,796.773 KB
Memory Used: -0.922 KB

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

Time Before: 0.04487 seconds
Time After: 0.04508 seconds
Time Taken: 0.00021 seconds

Memory Before: 7,708.141 KB
Memory After: 7,708.617 KB
Memory Used: 0.477 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
1SIMPLEpfcsystemPRIMARY   0const row not found
1SIMPLEpfALL    7Using where; Using filesort

Time Before: 0.04552 seconds
Time After: 0.04580 seconds
Time Taken: 0.00029 seconds

Memory Before: 7,708.859 KB
Memory After: 7,709.148 KB
Memory Used: 0.289 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 = 1567
	AND userlist.type = 'buddy'
	AND userlist.friend = 'yes'
	
ORDER BY RAND()
LIMIT 0, 4
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEavatarsystemPRIMARY   0const row not found
1SIMPLEuserlistrefPRIMARY,userid,relationidPRIMARY4const3Using index condition; Using where; Using temporary; Using filesort
1SIMPLEusereq_refPRIMARYPRIMARY4sambees_sammourco.userlist.relationid1 
1SIMPLEcustomavatareq_refPRIMARYPRIMARY4sambees_sammourco.userlist.relationid1 

Time Before: 0.04698 seconds
Time After: 0.04805 seconds
Time Taken: 0.00108 seconds

Memory Before: 7,753.313 KB
Memory After: 7,753.133 KB
Memory Used: -0.180 KB

SQL Query
SELECT album.*,
	picture.pictureid, picture.extension, picture.idhash, album.moderation,
	picture.thumbnail_dateline, picture.thumbnail_width, picture.thumbnail_height
	
FROM album AS album
LEFT JOIN picture AS picture ON (album.coverpictureid = picture.pictureid AND picture.thumbnail_filesize > 0)

WHERE album.userid = 1567
	AND album.state IN ('public')
	AND album.visible > 0
	
ORDER BY album.lastpicturedate DESC
LIMIT 2
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEalbumrefuseriduserid4const1Using where
1SIMPLEpictureeq_refPRIMARYPRIMARY4sambees_sammourco.album.coverpictureid1Using where

Time Before: 0.05032 seconds
Time After: 0.05059 seconds
Time Taken: 0.00026 seconds

Memory Before: 7,873.602 KB
Memory After: 7,873.703 KB
Memory Used: 0.102 KB

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

Time Before: 0.05078 seconds
Time After: 0.05098 seconds
Time Taken: 0.00019 seconds

Memory Before: 7,873.617 KB
Memory After: 7,873.969 KB
Memory Used: 0.352 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 = 1567
	 AND (visible = 1 OR profilevisitor.visitorid = 0)
	
ORDER BY profilevisitor.dateline DESC
LIMIT 10
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEprofilevisitorrefPRIMARY,useriduserid4const10Using where; Using filesort
1SIMPLEusereq_refPRIMARYPRIMARY4sambees_sammourco.profilevisitor.visitorid1 

Time Before: 0.05147 seconds
Time After: 0.05184 seconds
Time Taken: 0.00037 seconds

Memory Before: 7,874.922 KB
Memory After: 7,875.094 KB
Memory Used: 0.172 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 = 1567
	AND socialgroupmember.type = 'member'
ORDER BY socialgroup.name
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEsocialgroupmemberrefPRIMARY,groupid,useriduserid5const,const1Using index condition; Using temporary; Using filesort
1SIMPLEsocialgroupeq_refPRIMARYPRIMARY4sambees_sammourco.socialgroupmember.groupid1 
1SIMPLEsgiconeq_refPRIMARYPRIMARY4sambees_sammourco.socialgroupmember.groupid1 

Time Before: 0.05292 seconds
Time After: 0.05335 seconds
Time Taken: 0.00043 seconds

Memory Before: 7,884.383 KB
Memory After: 7,884.383 KB
Memory Used: 0.000 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 = 1567
	AND (visitormessage.state IN ('visible'))

	
ORDER BY visitormessage.dateline DESC
LIMIT 0, 10
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEavatarsystemPRIMARY   0const row not found
1SIMPLEvisitormessagerefuseriduserid4const3Using where
1SIMPLEusereq_refPRIMARYPRIMARY4sambees_sammourco.visitormessage.postuserid1 
1SIMPLEcustomavatareq_refPRIMARYPRIMARY4sambees_sammourco.user.userid1 

Time Before: 0.05820 seconds
Time After: 0.05868 seconds
Time Taken: 0.00048 seconds

Memory Before: 8,715.555 KB
Memory After: 8,715.250 KB
Memory Used: -0.305 KB

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

Time Before: 0.05898 seconds
Time After: 0.05908 seconds
Time Taken: 0.00009 seconds

Memory Before: 8,712.898 KB
Memory After: 8,713.438 KB
Memory Used: 0.539 KB

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

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

Time Before: 0.07401 seconds
Time After: 0.07431 seconds
Time Taken: 0.00030 seconds

Memory Before: 8,876.961 KB
Memory After: 8,877.242 KB
Memory Used: 0.281 KB

SQL Query
SELECT thread.title, thread.threadid, thread.forumid, thread.postuserid, post.postid, post.dateline
FROM post AS post
INNER JOIN thread AS thread USING (threadid)
WHERE post.postid = 98070
	AND post.visible = 1
	AND thread.visible = 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEpostconstPRIMARY,threadidPRIMARY4const1 
1SIMPLEthreadconstPRIMARYPRIMARY4const1 

Time Before: 0.07589 seconds
Time After: 0.07619 seconds
Time Taken: 0.00030 seconds

Memory Before: 8,796.586 KB
Memory After: 8,796.891 KB
Memory Used: 0.305 KB

SQL Query
SELECT COUNT(*) AS albumcount, SUM(album.visible) AS picturecount
FROM album AS album
WHERE album.userid = 1567
	AND album.state IN ('public')
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEalbumrefuseriduserid4const1Using where

Time Before: 0.07678 seconds
Time After: 0.07703 seconds
Time Taken: 0.00025 seconds

Memory Before: 8,802.977 KB
Memory After: 8,803.367 KB
Memory Used: 0.391 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 = 1567
	AND userlist.type = 'buddy'
	AND userlist.friend = 'yes'
	
ORDER BY user.username ASC
LIMIT 0, 4
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEavatarsystemPRIMARY   0const row not found
1SIMPLEuserlistrefPRIMARY,userid,relationidPRIMARY4const3Using index condition; Using where; Using temporary; Using filesort
1SIMPLEusereq_refPRIMARYPRIMARY4sambees_sammourco.userlist.relationid1 
1SIMPLEcustomavatareq_refPRIMARYPRIMARY4sambees_sammourco.userlist.relationid1 

Time Before: 0.07854 seconds
Time After: 0.07952 seconds
Time Taken: 0.00099 seconds

Memory Before: 8,812.102 KB
Memory After: 8,811.922 KB
Memory Used: -0.180 KB

SQL Query
UPDATE session
SET lastactivity = 1534583422, location = '/vb/member.php?u=1567&explain=1', inforum = 0, inthread = 0, incalendar = 0, badlocation = 0, bypass = 0
WHERE sessionhash = '50e331a46116c87e71d78700f56145f7'

Time Before: 0.08340 seconds
Time After: 0.08371 seconds
Time Taken: 0.00031 seconds

Memory Before: 9,222.070 KB
Memory After: 9,222.266 KB
Memory Used: 0.195 KB

Page generated in 0.082557916641235 seconds with 20 queries, spending 0.01015305519104 doing MySQL queries and 0.072404861450195 doing PHP things.
Shutdown Queries:
DISABLED