Including Functions.php

Time Before: 0.00293 seconds
Time After: 0.00756 seconds
Time Taken: 0.00463 seconds

Memory Before: 1,160.500 KB
Memory After: 1,904.695 KB
Memory Used: 744.195 KB

Connect to Database on Server: localhost

Time Before: 0.00762 seconds
Time After: 0.00790 seconds
Time Taken: 0.00028 seconds

Memory Before: 1,904.680 KB
Memory After: 1,905.633 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_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEdatastore rangePRIMARYPRIMARY52 16100.00Using index condition

Time Before: 0.00839 seconds
Time After: 0.00848 seconds
Time Taken: 0.00010 seconds

Memory Before: 1,909.281 KB
Memory After: 1,910.266 KB
Memory Used: 0.984 KB

Time Before: 0.00798 seconds
Time After: 0.00933 seconds
Time Taken: 0.00135 seconds

Memory Before: 1,905.367 KB
Memory After: 2,437.063 KB
Memory Used: 531.695 KB

Session Handling
SQL Query
SELECT *
FROM session
WHERE userid = 0
	AND host = '54.224.118.247'
	AND idhash = 'c91fee56b36ac6b9bbc06a54b6b636cb'
LIMIT 1
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEsession ALL    1010.99Using where

Time Before: 0.01002 seconds
Time After: 0.01016 seconds
Time Taken: 0.00015 seconds

Memory Before: 2,470.641 KB
Memory After: 2,471.219 KB
Memory Used: 0.578 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_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLElanguage systemPRIMARY   1100.00 

Time Before: 0.01071 seconds
Time After: 0.01084 seconds
Time Taken: 0.00013 seconds

Memory Before: 2,482.219 KB
Memory After: 2,482.094 KB
Memory Used: -0.125 KB

Time Before: 0.00970 seconds
Time After: 0.01096 seconds
Time Taken: 0.00127 seconds

Memory Before: 2,465.828 KB
Memory After: 2,600.023 KB
Memory Used: 134.195 KB

SQL Query
SELECT *
FROM style
WHERE (styleid = 45 AND userselect = 1)
	OR styleid = 45
ORDER BY styleid ASC
LIMIT 1
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEstyle constPRIMARYPRIMARY2const1100.00 

Time Before: 0.01337 seconds
Time After: 0.01344 seconds
Time Taken: 0.00008 seconds

Memory Before: 2,785.922 KB
Memory After: 2,786.508 KB
Memory Used: 0.586 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_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEtemplate rangePRIMARYPRIMARY4 77100.00Using index condition

Time Before: 0.01435 seconds
Time After: 0.01447 seconds
Time Taken: 0.00013 seconds

Memory Before: 2,970.695 KB
Memory After: 2,972.641 KB
Memory Used: 1.945 KB

End call of global.php: 0.015450000762939
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_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEavatar systemPRIMARY   00.00const row not found
1SIMPLEusercsscache systemPRIMARY   00.00const row not found
1SIMPLEuser constPRIMARYPRIMARY4const1100.00 
1SIMPLEuserfield constPRIMARYPRIMARY4const1100.00 
1SIMPLEusertextfield constPRIMARYPRIMARY4const1100.00 
1SIMPLEcustomavatar constPRIMARYPRIMARY4const00.00unique row not found
1SIMPLEcustomprofilepic constPRIMARYPRIMARY4const1100.00 
1SIMPLEsigpic systemPRIMARY   1100.00 

Time Before: 0.02098 seconds
Time After: 0.02134 seconds
Time Taken: 0.00036 seconds

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

SQL Query
SELECT blockid, requirement
FROM profileblockprivacy
WHERE userid = 1567
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEprofileblockprivacy refPRIMARYPRIMARY4const1100.00 

Time Before: 0.02846 seconds
Time After: 0.02859 seconds
Time Taken: 0.00013 seconds

Memory Before: 4,766.328 KB
Memory After: 4,766.844 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_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEpfc systemPRIMARY   00.00const row not found
1SIMPLEpf ALL    714.29Using where; Using filesort

Time Before: 0.02902 seconds
Time After: 0.02907 seconds
Time Taken: 0.00005 seconds

Memory Before: 4,767.078 KB
Memory After: 4,768.438 KB
Memory Used: 1.359 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_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEavatar systemPRIMARY   00.00const row not found
1SIMPLEuserlist refPRIMARY,userid,relationidPRIMARY4const312.50Using index condition; Using where; Using temporary; Using filesort
1SIMPLEuser eq_refPRIMARYPRIMARY4sambees_sammourco.userlist.relationid1100.00 
1SIMPLEcustomavatar eq_refPRIMARYPRIMARY4sambees_sammourco.userlist.relationid1100.00 

Time Before: 0.03005 seconds
Time After: 0.03075 seconds
Time Taken: 0.00070 seconds

Memory Before: 4,813.367 KB
Memory After: 4,815.797 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_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEalbum refuseriduserid4const111.11Using where
1SIMPLEpicture eq_refPRIMARYPRIMARY4sambees_sammourco.album.coverpictureid1100.00Using where

Time Before: 0.03256 seconds
Time After: 0.03275 seconds
Time Taken: 0.00018 seconds

Memory Before: 4,882.852 KB
Memory After: 4,882.992 KB
Memory Used: 0.141 KB

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

Time Before: 0.03291 seconds
Time After: 0.03328 seconds
Time Taken: 0.00036 seconds

Memory Before: 4,883.063 KB
Memory After: 4,883.383 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_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEprofilevisitor refPRIMARY,useriduserid4const1019.00Using index condition; Using where; Using filesort
1SIMPLEuser eq_refPRIMARYPRIMARY4sambees_sammourco.profilevisitor.visitorid1100.00 

Time Before: 0.03371 seconds
Time After: 0.03401 seconds
Time Taken: 0.00030 seconds

Memory Before: 4,884.469 KB
Memory After: 4,885.234 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_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEsocialgroupmember refPRIMARY,groupid,useriduserid5const,const1100.00Using temporary; Using filesort
1SIMPLEsocialgroup eq_refPRIMARYPRIMARY4sambees_sammourco.socialgroupmember.groupid1100.00 
1SIMPLEsgicon eq_refPRIMARYPRIMARY4sambees_sammourco.socialgroupmember.groupid1100.00 

Time Before: 0.03510 seconds
Time After: 0.03545 seconds
Time Taken: 0.00034 seconds

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

	
ORDER BY visitormessage.dateline DESC
LIMIT 0, 10
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEavatar systemPRIMARY   00.00const row not found
1SIMPLEvisitormessage refuseriduserid4const333.33Using where
1SIMPLEuser eq_refPRIMARYPRIMARY4sambees_sammourco.visitormessage.postuserid1100.00 
1SIMPLEcustomavatar eq_refPRIMARYPRIMARY4sambees_sammourco.user.userid1100.00 

Time Before: 0.04013 seconds
Time After: 0.04050 seconds
Time Taken: 0.00037 seconds

Memory Before: 5,355.766 KB
Memory After: 5,357.727 KB
Memory Used: 1.961 KB

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

Time Before: 0.04069 seconds
Time After: 0.04075 seconds
Time Taken: 0.00006 seconds

Memory Before: 5,355.242 KB
Memory After: 5,355.883 KB
Memory Used: 0.641 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_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEpost constPRIMARY,threadidPRIMARY4const1100.00 
1SIMPLEthread constPRIMARYPRIMARY4const1100.00 

Time Before: 0.04981 seconds
Time After: 0.04997 seconds
Time Taken: 0.00016 seconds

Memory Before: 5,442.047 KB
Memory After: 5,442.453 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_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEalbum refuseriduserid4const133.33Using where

Time Before: 0.05034 seconds
Time After: 0.05047 seconds
Time Taken: 0.00012 seconds

Memory Before: 5,450.875 KB
Memory After: 5,451.336 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_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEavatar systemPRIMARY   00.00const row not found
1SIMPLEuserlist refPRIMARY,userid,relationidPRIMARY4const312.50Using index condition; Using where; Using temporary; Using filesort
1SIMPLEuser eq_refPRIMARYPRIMARY4sambees_sammourco.userlist.relationid1100.00 
1SIMPLEcustomavatar eq_refPRIMARYPRIMARY4sambees_sammourco.userlist.relationid1100.00 

Time Before: 0.05187 seconds
Time After: 0.05257 seconds
Time Taken: 0.00070 seconds

Memory Before: 5,459.727 KB
Memory After: 5,462.156 KB
Memory Used: 2.430 KB

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

Time Before: 0.05540 seconds
Time After: 0.05570 seconds
Time Taken: 0.00030 seconds

Memory Before: 5,809.422 KB
Memory After: 5,809.609 KB
Memory Used: 0.188 KB

Page generated in 0.054821968078613 seconds with 19 queries, spending 0.0050210952758789 doing MySQL queries and 0.049800872802734 doing PHP things.
Shutdown Queries:
DISABLED