Including Functions.php

Time Before: 0.00712 seconds
Time After: 0.01751 seconds
Time Taken: 0.01039 seconds

Memory Before: 1,755.203 KB
Memory After: 2,949.859 KB
Memory Used: 1,194.656 KB

Connect to Database on Server: localhost

Time Before: 0.01759 seconds
Time After: 0.01882 seconds
Time Taken: 0.00123 seconds

Memory Before: 2,949.820 KB
Memory After: 2,950.766 KB
Memory Used: 0.945 KB

SQL Query
SET @@sql_mode = ''

Time Before: 0.01911 seconds
Time After: 0.01921 seconds
Time Taken: 0.00010 seconds

Memory Before: 2,951.453 KB
Memory After: 2,952.008 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.01994 seconds
Time After: 0.02097 seconds
Time Taken: 0.00103 seconds

Memory Before: 2,955.141 KB
Memory After: 2,955.445 KB
Memory Used: 0.305 KB

Time Before: 0.01927 seconds
Time After: 0.02737 seconds
Time Taken: 0.00810 seconds

Memory Before: 2,951.258 KB
Memory After: 4,675.219 KB
Memory Used: 1,723.961 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.03363 seconds
Time After: 0.03388 seconds
Time Taken: 0.00025 seconds

Memory Before: 5,312.172 KB
Memory After: 5,312.586 KB
Memory Used: 0.414 KB

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

Time Before: 0.03504 seconds
Time After: 0.03527 seconds
Time Taken: 0.00023 seconds

Memory Before: 5,370.617 KB
Memory After: 5,371.031 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_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.03609 seconds
Time After: 0.03702 seconds
Time Taken: 0.00093 seconds

Memory Before: 5,383.586 KB
Memory After: 5,383.023 KB
Memory Used: -0.563 KB

Time Before: 0.03443 seconds
Time After: 0.03749 seconds
Time Taken: 0.00307 seconds

Memory Before: 5,363.742 KB
Memory After: 5,560.453 KB
Memory Used: 196.711 KB

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

Time Before: 0.03831 seconds
Time After: 0.03846 seconds
Time Taken: 0.00015 seconds

Memory Before: 5,568.547 KB
Memory After: 5,569.055 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.09324 seconds
Time After: 0.09359 seconds
Time Taken: 0.00035 seconds

Memory Before: 7,902.453 KB
Memory After: 7,902.883 KB
Memory Used: 0.430 KB

End call of global.php: 0.09626293182373
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 = 400
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEusercsscachesystemPRIMARY   0const row not found
1SIMPLEuserconstPRIMARYPRIMARY4const1 
1SIMPLEuserfieldconstPRIMARYPRIMARY4const1 
1SIMPLEusertextfieldconstPRIMARYPRIMARY4const1 
1SIMPLEavatarconstPRIMARYPRIMARY2const0unique row not found
1SIMPLEcustomavatarconstPRIMARYPRIMARY4const1 
1SIMPLEcustomprofilepicconstPRIMARYPRIMARY4const0unique row not found
1SIMPLEsigpicsystemPRIMARY   1 
1SIMPLEdbtech_livewall_settingsconstPRIMARYPRIMARY4const0unique row not found

Time Before: 0.10607 seconds
Time After: 0.10683 seconds
Time Taken: 0.00076 seconds

Memory Before: 9,544.125 KB
Memory After: 9,542.578 KB
Memory Used: -1.547 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.11804 seconds
Time After: 0.11950 seconds
Time Taken: 0.00146 seconds

Memory Before: 11,076.094 KB
Memory After: 11,075.922 KB
Memory Used: -0.172 KB

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

Time Before: 0.14483 seconds
Time After: 0.14495 seconds
Time Taken: 0.00012 seconds

Memory Before: 11,593.602 KB
Memory After: 11,594.055 KB
Memory Used: 0.453 KB

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

Time Before: 0.14561 seconds
Time After: 0.14576 seconds
Time Taken: 0.00015 seconds

Memory Before: 11,616.102 KB
Memory After: 11,616.578 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    8Using where; Using filesort

Time Before: 0.14619 seconds
Time After: 0.14656 seconds
Time Taken: 0.00037 seconds

Memory Before: 11,616.828 KB
Memory After: 11,617.109 KB
Memory Used: 0.281 KB

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

Time Before: 0.15048 seconds
Time After: 0.15075 seconds
Time Taken: 0.00027 seconds

Memory Before: 12,048.469 KB
Memory After: 12,048.961 KB
Memory Used: 0.492 KB

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

Time Before: 0.15113 seconds
Time After: 0.15137 seconds
Time Taken: 0.00024 seconds

Memory Before: 12,049.258 KB
Memory After: 12,049.750 KB
Memory Used: 0.492 KB

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

Time Before: 0.15172 seconds
Time After: 0.15199 seconds
Time Taken: 0.00026 seconds

Memory Before: 12,050.375 KB
Memory After: 12,050.867 KB
Memory Used: 0.492 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 = 400
	AND userlist.type = 'buddy'
	AND userlist.friend = 'yes'
	
ORDER BY RAND()
LIMIT 0, 6
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEuserlistrefPRIMARY,userid,relationidPRIMARY4const8Using where; Using temporary; Using filesort
1SIMPLEusereq_refPRIMARYPRIMARY4douglasr_bleachforuns.userlist.relationid1 
1SIMPLEavatareq_refPRIMARYPRIMARY2douglasr_bleachforuns.user.avatarid1 
1SIMPLEcustomavatareq_refPRIMARYPRIMARY4douglasr_bleachforuns.user.userid1 

Time Before: 0.15603 seconds
Time After: 0.15760 seconds
Time Taken: 0.00157 seconds

Memory Before: 12,284.070 KB
Memory After: 12,283.914 KB
Memory Used: -0.156 KB

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

Time Before: 0.16266 seconds
Time After: 0.16297 seconds
Time Taken: 0.00031 seconds

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

Time Before: 0.16344 seconds
Time After: 0.16390 seconds
Time Taken: 0.00046 seconds

Memory Before: 12,300.672 KB
Memory After: 12,300.844 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 = 400
	AND socialgroupmember.type = 'member'
ORDER BY socialgroup.name
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEsocialgroupmemberrefPRIMARY,groupid,useriduserid5const,const2Using where; Using temporary; Using filesort
1SIMPLEsocialgroupeq_refPRIMARYPRIMARY4douglasr_bleachforuns.socialgroupmember.groupid1 
1SIMPLEsgiconeq_refPRIMARYPRIMARY4douglasr_bleachforuns.socialgroup.groupid1 

Time Before: 0.16563 seconds
Time After: 0.16625 seconds
Time Taken: 0.00062 seconds

Memory Before: 12,329.828 KB
Memory After: 12,329.828 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 = 400
	AND (visitormessage.state IN ('visible'))

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

Time Before: 0.17271 seconds
Time After: 0.17349 seconds
Time Taken: 0.00078 seconds

Memory Before: 12,871.719 KB
Memory After: 12,871.422 KB
Memory Used: -0.297 KB

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

Time Before: 0.17369 seconds
Time After: 0.17374 seconds
Time Taken: 0.00005 seconds

Memory Before: 12,869.000 KB
Memory After: 12,869.586 KB
Memory Used: 0.586 KB

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

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

Time Before: 0.19082 seconds
Time After: 0.19110 seconds
Time Taken: 0.00028 seconds

Memory Before: 13,171.727 KB
Memory After: 13,172.016 KB
Memory Used: 0.289 KB

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

Time Before: 0.19264 seconds
Time After: 0.19285 seconds
Time Taken: 0.00021 seconds

Memory Before: 12,946.453 KB
Memory After: 12,946.938 KB
Memory Used: 0.484 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 = 400
	AND userlist.type = 'buddy'
	AND userlist.friend = 'yes'
	
ORDER BY user.username ASC
LIMIT 0, 8
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEuserlistrefPRIMARY,userid,relationidPRIMARY4const8Using where; Using temporary; Using filesort
1SIMPLEusereq_refPRIMARYPRIMARY4douglasr_bleachforuns.userlist.relationid1 
1SIMPLEavatareq_refPRIMARYPRIMARY2douglasr_bleachforuns.user.avatarid1 
1SIMPLEcustomavatareq_refPRIMARYPRIMARY4douglasr_bleachforuns.user.userid1 

Time Before: 0.20342 seconds
Time After: 0.20494 seconds
Time Taken: 0.00153 seconds

Memory Before: 12,972.172 KB
Memory After: 12,971.992 KB
Memory Used: -0.180 KB

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

Time Before: 0.21840 seconds
Time After: 0.21861 seconds
Time Taken: 0.00021 seconds

Memory Before: 13,212.172 KB
Memory After: 13,212.617 KB
Memory Used: 0.445 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 <= 1511395648 AND stream.userid IN (400,20,24,58,248,2645,2966,11703,20216)
ORDER BY dateline DESC
LIMIT 0, 30
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEstreamrangedateline,useriddateline4 786Using where
1SIMPLEtypeeq_refPRIMARYPRIMARY4douglasr_bleachforuns.stream.typeid1 

Time Before: 0.21959 seconds
Time After: 0.22040 seconds
Time Taken: 0.00081 seconds

Memory Before: 13,221.266 KB
Memory After: 13,221.508 KB
Memory Used: 0.242 KB

SQL Query
SELECT
	p.postid AS p_postid, p.threadid AS p_threadid, p.title AS p_title, p.visible AS p_visible, p.userid AS p_userid, p.pagetext AS p_pagetext, p.username AS p_username,
	t.threadid AS t_threadid, t.title AS t_title, t.forumid AS t_forumid, t.pollid AS t_pollid, t.open AS t_open, t.postusername AS t_postusername,
	t.views AS t_views, t.visible AS t_visible, t.postuserid AS t_postuserid, t.postuserid AS t_userid, t.replycount AS t_replycount,
	fp.pagetext AS t_pagetext
FROM post AS p
INNER JOIN thread AS t ON (p.threadid = t.threadid)
INNER JOIN post AS fp ON (t.firstpostid = fp.postid)
WHERE
	p.postid IN (135873,135872,135861,135860,135859,135856,135855,135852,135850,135848,135842,135841,135840,135839,135836,135834,135832,135828,135827,135821,135820,135819,135817,135816,135814,135770,135768,135763,135762,135761)
		AND
	p.visible <> 2
		AND
	t.visible <> 2
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEprangePRIMARY,threadid,threadid_visible_datelinePRIMARY4 30Using where
1SIMPLEteq_refPRIMARYPRIMARY4douglasr_bleachforuns.p.threadid1Using where
1SIMPLEfpeq_refPRIMARYPRIMARY4douglasr_bleachforuns.t.firstpostid1 

Time Before: 0.22400 seconds
Time After: 0.22500 seconds
Time Taken: 0.00100 seconds

Memory Before: 13,441.367 KB
Memory After: 13,441.039 KB
Memory Used: -0.328 KB

SQL Query
SELECT u.*
	, av.avatarpath, NOT ISNULL(cu.userid) AS hascustomavatar,
		cu.dateline AS avatardateline, cu.width AS avwidth, cu.height AS avheight, cu.height_thumb AS avheight_thumb,
		cu.width_thumb AS avwidth_thumb, NOT ISNULL(cu.filedata_thumb) AS filedata_thumb
		
FROM user AS u

	LEFT JOIN avatar AS av ON(av.avatarid = u.avatarid)
	LEFT JOIN customavatar AS cu ON(cu.userid = u.userid)
	
WHERE u.userid IN (20,30538,8,58,7170,2586,34592,23,1172)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEurangePRIMARYPRIMARY4 9Using where
1SIMPLEaveq_refPRIMARYPRIMARY2douglasr_bleachforuns.u.avatarid1 
1SIMPLEcueq_refPRIMARYPRIMARY4douglasr_bleachforuns.u.userid1 

Time Before: 0.22695 seconds
Time After: 0.22780 seconds
Time Taken: 0.00085 seconds

Memory Before: 13,558.203 KB
Memory After: 13,558.289 KB
Memory Used: 0.086 KB

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

Time Before: 0.26533 seconds
Time After: 0.26584 seconds
Time Taken: 0.00051 seconds

Memory Before: 13,453.313 KB
Memory After: 13,453.813 KB
Memory Used: 0.500 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.26660 seconds
Time After: 0.26703 seconds
Time Taken: 0.00043 seconds

Memory Before: 13,453.234 KB
Memory After: 13,453.711 KB
Memory Used: 0.477 KB

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

Time Before: 0.27066 seconds
Time After: 0.27090 seconds
Time Taken: 0.00024 seconds

Memory Before: 13,583.742 KB
Memory After: 13,584.234 KB
Memory Used: 0.492 KB

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

Time Before: 0.27127 seconds
Time After: 0.27146 seconds
Time Taken: 0.00020 seconds

Memory Before: 13,584.484 KB
Memory After: 13,584.977 KB
Memory Used: 0.492 KB

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

Time Before: 0.27181 seconds
Time After: 0.27202 seconds
Time Taken: 0.00021 seconds

Memory Before: 13,584.664 KB
Memory After: 13,585.156 KB
Memory Used: 0.492 KB

SQL Query
UPDATE session
SET lastactivity = 1511395648, location = 'member.php?u=400', badlocation = 0
WHERE sessionhash = '4cdcfa25803baeb097de7414a8a89764'

Time Before: 0.27661 seconds
Time After: 0.27680 seconds
Time Taken: 0.00019 seconds

Memory Before: 14,141.938 KB
Memory After: 14,142.180 KB
Memory Used: 0.242 KB

Page generated in 0.27475905418396 seconds with 34 queries, spending 0.018350839614868 doing MySQL queries and 0.25640821456909 doing PHP things.
Shutdown Queries:
DISABLED