Including Functions.php

Time Before: 0.00523 seconds
Time After: 0.01378 seconds
Time Taken: 0.00855 seconds

Memory Before: 1,161.180 KB
Memory After: 1,905.375 KB
Memory Used: 744.195 KB

Connect to Database on Server: localhost

Time Before: 0.01388 seconds
Time After: 0.01423 seconds
Time Taken: 0.00034 seconds

Memory Before: 1,905.359 KB
Memory After: 1,906.313 KB
Memory Used: 0.953 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.01481 seconds
Time After: 0.01493 seconds
Time Taken: 0.00011 seconds

Memory Before: 1,909.922 KB
Memory After: 1,910.898 KB
Memory Used: 0.977 KB

Time Before: 0.01434 seconds
Time After: 0.01637 seconds
Time Taken: 0.00204 seconds

Memory Before: 1,906.047 KB
Memory After: 2,437.688 KB
Memory Used: 531.641 KB

Session Handling
SQL Query
SELECT *
FROM session
WHERE userid = 0
	AND host = '54.227.76.180'
	AND idhash = '3845663ecfe919f5efc39ab4f16260b1'
LIMIT 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEsessionALL    209Using where

Time Before: 0.01737 seconds
Time After: 0.01759 seconds
Time Taken: 0.00022 seconds

Memory Before: 2,471.352 KB
Memory After: 2,471.938 KB
Memory Used: 0.586 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.01814 seconds
Time After: 0.01825 seconds
Time Taken: 0.00011 seconds

Memory Before: 2,482.867 KB
Memory After: 2,482.742 KB
Memory Used: -0.125 KB

Time Before: 0.01700 seconds
Time After: 0.01837 seconds
Time Taken: 0.00137 seconds

Memory Before: 2,466.594 KB
Memory After: 2,600.672 KB
Memory Used: 134.078 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.02123 seconds
Time After: 0.02131 seconds
Time Taken: 0.00008 seconds

Memory Before: 2,786.555 KB
Memory After: 2,787.133 KB
Memory Used: 0.578 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.02228 seconds
Time After: 0.02243 seconds
Time Taken: 0.00015 seconds

Memory Before: 2,971.359 KB
Memory After: 2,973.305 KB
Memory Used: 1.945 KB

End call of global.php: 0.023979902267456
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.03235 seconds
Time After: 0.03290 seconds
Time Taken: 0.00055 seconds

Memory Before: 3,670.844 KB
Memory After: 3,670.844 KB
Memory Used: 0.000 KB

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

Time Before: 0.04372 seconds
Time After: 0.04401 seconds
Time Taken: 0.00029 seconds

Memory Before: 4,767.789 KB
Memory After: 4,768.305 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
1SIMPLEpfcsystemPRIMARY   0const row not found
1SIMPLEpfALL    7Using where; Using filesort

Time Before: 0.04441 seconds
Time After: 0.04448 seconds
Time Taken: 0.00006 seconds

Memory Before: 4,768.508 KB
Memory After: 4,769.875 KB
Memory Used: 1.367 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; Using temporary; Using filesort
1SIMPLEuserlistrefPRIMARY,userid,relationidPRIMARY4const3Using index condition; Using where
1SIMPLEusereq_refPRIMARYPRIMARY4sambees_sammourco.userlist.relationid1 
1SIMPLEcustomavatareq_refPRIMARYPRIMARY4sambees_sammourco.userlist.relationid1 

Time Before: 0.04565 seconds
Time After: 0.04671 seconds
Time Taken: 0.00106 seconds

Memory Before: 4,814.766 KB
Memory After: 4,817.195 KB
Memory Used: 2.430 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.04925 seconds
Time After: 0.04949 seconds
Time Taken: 0.00024 seconds

Memory Before: 4,884.344 KB
Memory After: 4,884.484 KB
Memory Used: 0.141 KB

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

Time Before: 0.04961 seconds
Time After: 0.05266 seconds
Time Taken: 0.00304 seconds

Memory Before: 4,884.648 KB
Memory After: 4,884.969 KB
Memory Used: 0.320 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.05322 seconds
Time After: 0.05360 seconds
Time Taken: 0.00038 seconds

Memory Before: 4,885.938 KB
Memory After: 4,886.703 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 = 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.05474 seconds
Time After: 0.05525 seconds
Time Taken: 0.00051 seconds

Memory Before: 4,895.086 KB
Memory After: 4,895.125 KB
Memory Used: 0.039 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.userid1Using where

Time Before: 0.06034 seconds
Time After: 0.06078 seconds
Time Taken: 0.00044 seconds

Memory Before: 5,357.602 KB
Memory After: 5,359.555 KB
Memory Used: 1.953 KB

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

Time Before: 0.06098 seconds
Time After: 0.06103 seconds
Time Taken: 0.00005 seconds

Memory Before: 5,357.148 KB
Memory After: 5,357.797 KB
Memory Used: 0.648 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.07388 seconds
Time After: 0.07405 seconds
Time Taken: 0.00016 seconds

Memory Before: 5,523.422 KB
Memory After: 5,523.773 KB
Memory Used: 0.352 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.07571 seconds
Time After: 0.07586 seconds
Time Taken: 0.00015 seconds

Memory Before: 5,443.930 KB
Memory After: 5,444.336 KB
Memory Used: 0.406 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.07626 seconds
Time After: 0.07637 seconds
Time Taken: 0.00011 seconds

Memory Before: 5,452.789 KB
Memory After: 5,453.250 KB
Memory Used: 0.461 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; Using temporary; Using filesort
1SIMPLEuserlistrefPRIMARY,userid,relationidPRIMARY4const3Using index condition; Using where
1SIMPLEusereq_refPRIMARYPRIMARY4sambees_sammourco.userlist.relationid1 
1SIMPLEcustomavatareq_refPRIMARYPRIMARY4sambees_sammourco.userlist.relationid1 

Time Before: 0.07733 seconds
Time After: 0.07813 seconds
Time Taken: 0.00080 seconds

Memory Before: 5,461.555 KB
Memory After: 5,463.984 KB
Memory Used: 2.430 KB

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

Time Before: 0.08068 seconds
Time After: 0.08080 seconds
Time Taken: 0.00012 seconds

Memory Before: 5,811.406 KB
Memory After: 5,811.594 KB
Memory Used: 0.188 KB

Page generated in 0.080161094665527 seconds with 20 queries, spending 0.0089585781097412 doing MySQL queries and 0.071202516555786 doing PHP things.
Shutdown Queries:
DISABLED