Including Functions.php

Time Before: 0.00978 seconds
Time After: 0.02075 seconds
Time Taken: 0.01097 seconds

Memory Before: 1,755.289 KB
Memory After: 2,950.070 KB
Memory Used: 1,194.781 KB

Connect to Database on Server: localhost

Time Before: 0.02085 seconds
Time After: 0.02157 seconds
Time Taken: 0.00072 seconds

Memory Before: 2,950.055 KB
Memory After: 2,951.000 KB
Memory Used: 0.945 KB

SQL Query
SET @@sql_mode = ''

Time Before: 0.02171 seconds
Time After: 0.02180 seconds
Time Taken: 0.00008 seconds

Memory Before: 2,951.688 KB
Memory After: 2,952.242 KB
Memory Used: 0.555 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
1SIMPLEdatastorerangePRIMARYPRIMARY52 16Using where

Time Before: 0.02220 seconds
Time After: 0.02278 seconds
Time Taken: 0.00058 seconds

Memory Before: 2,955.375 KB
Memory After: 2,955.680 KB
Memory Used: 0.305 KB

Time Before: 0.02183 seconds
Time After: 0.02615 seconds
Time Taken: 0.00432 seconds

Memory Before: 2,951.492 KB
Memory After: 4,675.391 KB
Memory Used: 1,723.898 KB

SQL Query
SELECT *
FROM datastore
WHERE title IN ('dbtech_vbshout_button','dbtech_vbshout_chatroom','dbtech_vbshout_instance','dbtech_livewall_contenttype')
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEdatastorerangePRIMARYPRIMARY52 4Using where

Time Before: 0.02965 seconds
Time After: 0.02985 seconds
Time Taken: 0.00021 seconds

Memory Before: 5,312.305 KB
Memory After: 5,312.719 KB
Memory Used: 0.414 KB

Session Handling
SQL Query
SELECT *
FROM session
WHERE userid = 0
	AND host = '54.91.16.95'
	AND idhash = 'd85021dbca8fb7b0c5a9c155f2b5ef89'
LIMIT 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEsessionrefguest_lookup,user_activityguest_lookup51const,const,const2Using where

Time Before: 0.03060 seconds
Time After: 0.03077 seconds
Time Taken: 0.00017 seconds

Memory Before: 5,370.766 KB
Memory After: 5,371.188 KB
Memory Used: 0.422 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 = 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLElanguageconstPRIMARYPRIMARY2const1 

Time Before: 0.03144 seconds
Time After: 0.03200 seconds
Time Taken: 0.00056 seconds

Memory Before: 5,383.758 KB
Memory After: 5,383.195 KB
Memory Used: -0.563 KB

Time Before: 0.03022 seconds
Time After: 0.03225 seconds
Time Taken: 0.00203 seconds

Memory Before: 5,363.906 KB
Memory After: 5,560.617 KB
Memory Used: 196.711 KB

SQL Query
SELECT *
FROM datastore
WHERE title IN ('routes')
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEdatastoreconstPRIMARYPRIMARY52const1 

Time Before: 0.03283 seconds
Time After: 0.03295 seconds
Time Taken: 0.00012 seconds

Memory Before: 5,568.719 KB
Memory After: 5,569.227 KB
Memory Used: 0.508 KB

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

Time Before: 0.06814 seconds
Time After: 0.06842 seconds
Time Taken: 0.00027 seconds

Memory Before: 7,903.078 KB
Memory After: 7,903.508 KB
Memory Used: 0.430 KB

End call of global.php: 0.070664167404175
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
	 , dbtech_livewall_settings.posts_display , dbtech_livewall_settings.posts_privacy , dbtech_livewall_settings.socialgroupposts_display , dbtech_livewall_settings.socialgroupposts_privacy , dbtech_livewall_settings.socialgroupthreads_display , dbtech_livewall_settings.socialgroupthreads_privacy , dbtech_livewall_settings.threads_display , dbtech_livewall_settings.threads_privacy , dbtech_livewall_settings.statusupdate_display , dbtech_livewall_settings.statusupdate_privacy , dbtech_livewall_settings.aptl_display , dbtech_livewall_settings.aptl_privacy
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)
 LEFT JOIN dbtech_livewall_settings AS dbtech_livewall_settings ON(dbtech_livewall_settings.userid = user.userid)
WHERE user.userid = 39879
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEusercsscachesystemPRIMARY   0const row not found
1SIMPLEuserconstPRIMARYPRIMARY4const1 
1SIMPLEuserfieldconstPRIMARYPRIMARY4const1 
1SIMPLEusertextfieldconstPRIMARYPRIMARY4const1 
1SIMPLEavatarconstPRIMARYPRIMARY2const0unique row not found
1SIMPLEcustomavatarconstPRIMARYPRIMARY4const0unique row not found
1SIMPLEcustomprofilepicconstPRIMARYPRIMARY4const0unique row not found
1SIMPLEsigpicsystemPRIMARY   1 
1SIMPLEdbtech_livewall_settingsconstPRIMARYPRIMARY4const1 

Time Before: 0.07904 seconds
Time After: 0.07965 seconds
Time Taken: 0.00061 seconds

Memory Before: 9,544.555 KB
Memory After: 9,542.992 KB
Memory Used: -1.563 KB

SQL Query
SELECT title, template
FROM template
WHERE templateid IN (6283,5341,5302,5303,5305,5311,5310,5138,5139,5140,0,0,5141,0,0,5142,5147,5143,5144,5145,5148,5149,5150,5151,5152,5203,5205,5207,5209,5211,0,5258,5257,5260,5261,5264,5265,5507,5677,5683,5316,5314,5317,5319,5318,5320,5321,6284,5323,5324,5325,5326,5331,5328,5330,5327,5329,5340,5342,5343,5352,5334,5345,5346,5347,5348,5350,5313,5339,5344,5353,5349,5355,5354,5351,5431,6324,5776,5717,5787,2029,2028,2030,2020,2019,2026,5081,5088,2024,2033,2034,5068,5473,5769,6286,6287,5420,5421,5422,5785,0,0,5748,5750,5443,5444,5446,5447,5670,5712,5711,5761,5713,5270,5269,5273,3059,3057,3639,3638,3635,3636,3701,3702,3703,6103,6098,6112,6111,6113,6105,6107,6106,6050,6049,6051,0,6054,6052,6328)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEtemplaterangePRIMARYPRIMARY4 133Using where

Time Before: 0.09038 seconds
Time After: 0.09183 seconds
Time Taken: 0.00146 seconds

Memory Before: 11,067.445 KB
Memory After: 11,067.273 KB
Memory Used: -0.172 KB

SQL Query
SELECT MAX(dateline) AS lastpost, COUNT(*) AS total
FROM usernote AS usernote
WHERE userid = 39879
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLE       Impossible WHERE noticed after reading const tables

Time Before: 0.11578 seconds
Time After: 0.11587 seconds
Time Taken: 0.00009 seconds

Memory Before: 11,585.008 KB
Memory After: 11,585.484 KB
Memory Used: 0.477 KB

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

Time Before: 0.11640 seconds
Time After: 0.11656 seconds
Time Taken: 0.00016 seconds

Memory Before: 11,607.500 KB
Memory After: 11,607.984 KB
Memory Used: 0.484 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    8Using where; Using filesort

Time Before: 0.11688 seconds
Time After: 0.11711 seconds
Time Taken: 0.00023 seconds

Memory Before: 11,608.234 KB
Memory After: 11,608.516 KB
Memory Used: 0.281 KB

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

Time Before: 0.12085 seconds
Time After: 0.12099 seconds
Time Taken: 0.00014 seconds

Memory Before: 12,040.000 KB
Memory After: 12,040.484 KB
Memory Used: 0.484 KB

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

Time Before: 0.12123 seconds
Time After: 0.12134 seconds
Time Taken: 0.00011 seconds

Memory Before: 12,040.781 KB
Memory After: 12,041.273 KB
Memory Used: 0.492 KB

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

Time Before: 0.12157 seconds
Time After: 0.12167 seconds
Time Taken: 0.00010 seconds

Memory Before: 12,041.898 KB
Memory After: 12,042.391 KB
Memory Used: 0.492 KB

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

Time Before: 0.12332 seconds
Time After: 0.12349 seconds
Time Taken: 0.00017 seconds

Memory Before: 12,115.805 KB
Memory After: 12,116.125 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 = 39879
	 AND (visible = 1 OR profilevisitor.visitorid = 0)
	
ORDER BY profilevisitor.dateline DESC
LIMIT 10
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEprofilevisitorrefPRIMARY,useriduserid4const1Using where; Using filesort
1SIMPLEusereq_refPRIMARYPRIMARY4douglasr_bleachforuns.profilevisitor.visitorid1 

Time Before: 0.12382 seconds
Time After: 0.12401 seconds
Time Taken: 0.00019 seconds

Memory Before: 12,117.133 KB
Memory After: 12,117.297 KB
Memory Used: 0.164 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 = 39879
	AND socialgroupmember.type = 'member'
ORDER BY socialgroup.name
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEsocialgroupmemberrefPRIMARY,groupid,useriduserid5const,const1Using where; Using temporary; Using filesort
1SIMPLEsocialgroupeq_refPRIMARYPRIMARY4douglasr_bleachforuns.socialgroupmember.groupid1 
1SIMPLEsgiconeq_refPRIMARYPRIMARY4douglasr_bleachforuns.socialgroup.groupid1 

Time Before: 0.12494 seconds
Time After: 0.12522 seconds
Time Taken: 0.00028 seconds

Memory Before: 12,122.813 KB
Memory After: 12,122.820 KB
Memory Used: 0.008 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 = 39879
	AND (visitormessage.state IN ('visible'))

	
ORDER BY visitormessage.dateline DESC
LIMIT 0, 10
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEvisitormessagerefuseriduserid4const1Using where
1SIMPLEusereq_refPRIMARYPRIMARY4douglasr_bleachforuns.visitormessage.postuserid1 
1SIMPLEavatareq_refPRIMARYPRIMARY2douglasr_bleachforuns.user.avatarid1 
1SIMPLEcustomavatareq_refPRIMARYPRIMARY4douglasr_bleachforuns.user.userid1 

Time Before: 0.12993 seconds
Time After: 0.13031 seconds
Time Taken: 0.00039 seconds

Memory Before: 12,655.141 KB
Memory After: 12,654.836 KB
Memory Used: -0.305 KB

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

Time Before: 0.13050 seconds
Time After: 0.13055 seconds
Time Taken: 0.00005 seconds

Memory Before: 12,652.414 KB
Memory After: 12,653.000 KB
Memory Used: 0.586 KB

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

WHERE visitormessage.userid = 39879
	AND (visitormessage.state IN ('visible') OR (visitormessage.postuserid = 0 AND state = 'moderation'))
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEvisitormessagerefpostuserid,useriduserid4const1Using where

Time Before: 0.13111 seconds
Time After: 0.13126 seconds
Time Taken: 0.00015 seconds

Memory Before: 12,706.258 KB
Memory After: 12,706.547 KB
Memory Used: 0.289 KB

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

Time Before: 0.13170 seconds
Time After: 0.13183 seconds
Time Taken: 0.00013 seconds

Memory Before: 12,684.047 KB
Memory After: 12,684.508 KB
Memory Used: 0.461 KB

SQL Query
SELECT relationid
FROM userlist
WHERE
	userid IN (39879)
		AND
	type = 'buddy'
		AND
	friend = 'yes'
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEuserlistrefPRIMARYPRIMARY4const1Using where

Time Before: 0.13672 seconds
Time After: 0.13685 seconds
Time Taken: 0.00013 seconds

Memory Before: 12,934.609 KB
Memory After: 12,935.047 KB
Memory Used: 0.438 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 <= 1516708087 AND stream.userid IN (39879)
ORDER BY dateline DESC
LIMIT 0, 30
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEstreamrangedateline,useriduserid8 2Using where
1SIMPLEtypeeq_refPRIMARYPRIMARY4douglasr_bleachforuns.stream.typeid1 

Time Before: 0.13722 seconds
Time After: 0.13743 seconds
Time Taken: 0.00021 seconds

Memory Before: 12,942.047 KB
Memory After: 12,942.336 KB
Memory Used: 0.289 KB

SQL Query
SELECT COUNT(*) AS files FROM dl2_files WHERE uploaderid = 39879 AND modqueue = 0
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEdl2_filesALL    246Using where

Time Before: 0.13882 seconds
Time After: 0.13920 seconds
Time Taken: 0.00037 seconds

Memory Before: 12,945.773 KB
Memory After: 12,946.258 KB
Memory Used: 0.484 KB

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

Time Before: 0.13965 seconds
Time After: 0.13992 seconds
Time Taken: 0.00027 seconds

Memory Before: 12,945.680 KB
Memory After: 12,946.156 KB
Memory Used: 0.477 KB

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

Time Before: 0.14240 seconds
Time After: 0.14259 seconds
Time Taken: 0.00019 seconds

Memory Before: 13,075.250 KB
Memory After: 13,075.742 KB
Memory Used: 0.492 KB

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

Time Before: 0.14295 seconds
Time After: 0.14311 seconds
Time Taken: 0.00016 seconds

Memory Before: 13,075.992 KB
Memory After: 13,076.484 KB
Memory Used: 0.492 KB

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

Time Before: 0.14335 seconds
Time After: 0.14352 seconds
Time Taken: 0.00017 seconds

Memory Before: 13,076.172 KB
Memory After: 13,076.664 KB
Memory Used: 0.492 KB

SQL Query
UPDATE session
SET lastactivity = 1516708087, location = 'member.php?u=39879', badlocation = 0
WHERE sessionhash = 'd211eebbdfd5aff814e56b164dde9fe9'

Time Before: 0.14594 seconds
Time After: 0.14611 seconds
Time Taken: 0.00017 seconds

Memory Before: 13,343.656 KB
Memory After: 13,343.891 KB
Memory Used: 0.234 KB

Page generated in 0.1451780796051 seconds with 30 queries, spending 0.0086376667022705 doing MySQL queries and 0.13654041290283 doing PHP things.
Shutdown Queries:
DISABLED