Including Functions.php

Time Before: 0.00561 seconds
Time After: 0.01371 seconds
Time Taken: 0.00810 seconds

Memory Before: 1,789.352 KB
Memory After: 2,984.109 KB
Memory Used: 1,194.758 KB

Connect to Database on Server: localhost

Time Before: 0.01376 seconds
Time After: 0.01439 seconds
Time Taken: 0.00062 seconds

Memory Before: 2,984.094 KB
Memory After: 2,985.039 KB
Memory Used: 0.945 KB

SQL Query
SET @@sql_mode = ''

Time Before: 0.01448 seconds
Time After: 0.01454 seconds
Time Taken: 0.00006 seconds

Memory Before: 2,985.727 KB
Memory After: 2,986.281 KB
Memory Used: 0.555 KB

Datastore Setup
SQL Query
SELECT *
FROM datastore
WHERE title IN ('iconcache','mailqueue','prefixcache','options','bitfields','attachmentcache','forumcache','usergroupcache','stylecache','languagecache','products','pluginlist','cron','profilefield','loadcache','noticecache','activitystream')
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEdatastorerangePRIMARYPRIMARY52 17Using where

Time Before: 0.01485 seconds
Time After: 0.01529 seconds
Time Taken: 0.00044 seconds

Memory Before: 2,989.438 KB
Memory After: 2,989.734 KB
Memory Used: 0.297 KB

Time Before: 0.01456 seconds
Time After: 0.01693 seconds
Time Taken: 0.00237 seconds

Memory Before: 2,985.531 KB
Memory After: 3,954.063 KB
Memory Used: 968.531 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.01951 seconds
Time After: 0.01961 seconds
Time Taken: 0.00011 seconds

Memory Before: 4,591.063 KB
Memory After: 4,591.477 KB
Memory Used: 0.414 KB

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

Time Before: 0.02018 seconds
Time After: 0.02028 seconds
Time Taken: 0.00011 seconds

Memory Before: 4,650.383 KB
Memory After: 4,650.805 KB
Memory Used: 0.422 KB

SQL Query
SELECT languageid,
			phrasegroup_global AS phrasegroup_global,
			phrasegroup_forumdisplay AS phrasegroup_forumdisplay,
			phrasegroup_inlinemod AS phrasegroup_inlinemod,
			phrasegroup_prefix AS phrasegroup_prefix,
			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.02086 seconds
Time After: 0.02108 seconds
Time Taken: 0.00022 seconds

Memory Before: 4,662.445 KB
Memory After: 4,662.203 KB
Memory Used: -0.242 KB

Time Before: 0.01991 seconds
Time After: 0.02122 seconds
Time Taken: 0.00132 seconds

Memory Before: 4,643.148 KB
Memory After: 4,753.211 KB
Memory Used: 110.063 KB

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

Time Before: 0.02161 seconds
Time After: 0.02168 seconds
Time Taken: 0.00008 seconds

Memory Before: 4,761.648 KB
Memory After: 4,762.156 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.04700 seconds
Time After: 0.04721 seconds
Time Taken: 0.00021 seconds

Memory Before: 6,757.164 KB
Memory After: 6,757.594 KB
Memory Used: 0.430 KB

End call of global.php: 0.048933982849121
SQL Query
SELECT moderator.*, user.username,
IF(user.displaygroupid = 0, user.usergroupid, user.displaygroupid) AS displaygroupid, infractiongroupid
FROM moderator AS moderator
INNER JOIN user AS user USING(userid)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEmoderatorALLuserid_forumid   8 
1SIMPLEusereq_refPRIMARYPRIMARY4douglasr_bleachforuns.moderator.userid1 

Time Before: 0.05126 seconds
Time After: 0.05143 seconds
Time Taken: 0.00017 seconds

Memory Before: 7,641.719 KB
Memory After: 7,642.070 KB
Memory Used: 0.352 KB

SQL Query
SELECT forum.forumid, forum.lastpost, forum.lastposter, forum.lastposterid, forum.lastthread, forum.lastthreadid, forum.lasticonid, forum.threadcount, forum.replycount, forum.lastpostid, forum.lastprefixid, default_tags_ids, user.usergroupid, user.homepage, user.options AS useroptions, IF(userlist.friend = 'yes', 1, 0) AS isfriend,
	user.lastactivity, user.lastvisit, IF(user.options & 512, 1, 0) AS invisible
	
FROM forum AS forum

LEFT JOIN user AS user ON (user.userid = forum.lastposterid)
LEFT JOIN userlist AS userlist ON (userlist.relationid = user.userid AND userlist.type = 'buddy' AND userlist.userid = 0)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEforumALL    32 
1SIMPLEusereq_refPRIMARYPRIMARY4douglasr_bleachforuns.forum.lastposterid1 
1SIMPLEuserlisteq_refPRIMARY,userid,relationidPRIMARY9const,douglasr_bleachforuns.user.userid,const1 

Time Before: 0.05214 seconds
Time After: 0.05252 seconds
Time Taken: 0.00038 seconds

Memory Before: 7,673.156 KB
Memory After: 7,673.086 KB
Memory Used: -0.070 KB

SQL Query
SELECT title, template
FROM template
WHERE templateid IN (2023,6276,5667,5669,5668,5290,5291,6282,5289,6281,5288,6278,5757,5707,5657,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,3639,3701,3702,3703,6103,6098,6112,6111,6113,6105,5260,6107,6106,6050,6049,6051,0,6328)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEtemplaterangePRIMARYPRIMARY4 72Using where

Time Before: 0.05415 seconds
Time After: 0.05465 seconds
Time Taken: 0.00050 seconds

Memory Before: 8,012.242 KB
Memory After: 8,012.383 KB
Memory Used: 0.141 KB

SQL Query
SELECT
	st.*, sd.founded
FROM
	seoqueries_data sd
LEFT JOIN
	seoqueries_terms st
	ON
	sd.stid = st.stid
WHERE
	sd.page_type = 'forumdisplay'
	AND
	sd.page_id = 4
ORDER BY
	sd.founded DESC LIMIT 50
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEsdALL    207197Using where; Using filesort
1SIMPLEsteq_refPRIMARYPRIMARY4douglasr_bleachforuns.sd.stid1 

Time Before: 0.07338 seconds
Time After: 0.09798 seconds
Time Taken: 0.02460 seconds

Memory Before: 8,527.477 KB
Memory After: 8,527.750 KB
Memory Used: 0.273 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.09879 seconds
Time After: 0.09897 seconds
Time Taken: 0.00017 seconds

Memory Before: 8,446.703 KB
Memory After: 8,447.180 KB
Memory Used: 0.477 KB

SQL Query
SELECT user.username, (user.options & 512) AS invisible, user.usergroupid,
	session.userid, session.inforum, session.lastactivity, session.badlocation,
	IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, infractiongroupid
FROM session AS session
LEFT JOIN user AS user ON(user.userid = session.userid)
WHERE session.lastactivity > 1532071758
ORDER BY username ASC, lastactivity DESC
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEsessionrangelast_activitylast_activity4 9037Using where; Using temporary; Using filesort
1SIMPLEusereq_refPRIMARYPRIMARY4douglasr_bleachforuns.session.userid1 

Time Before: 0.10097 seconds
Time After: 0.12388 seconds
Time Taken: 0.02291 seconds

Memory Before: 8,571.570 KB
Memory After: 8,571.727 KB
Memory Used: 0.156 KB

SQL Query
SELECT
	announcement.announcementid, startdate, title, announcement.views,
	user.username, user.userid, user.usertitle, user.customtitle, user.usergroupid,
	IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, infractiongroupid
	
	
FROM announcement AS announcement

LEFT JOIN user AS user ON(user.userid = announcement.userid)

WHERE startdate <= 1534871758
	AND enddate >= 1534871758
	AND forumid IN (4,3,-1)
	
ORDER BY startdate DESC, announcement.announcementid DESC
LIMIT 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEannouncementrangeforumid,startdatestartdate6 1Using where; Using filesort
1SIMPLEusereq_refPRIMARYPRIMARY4douglasr_bleachforuns.announcement.userid1 

Time Before: 0.14523 seconds
Time After: 0.14536 seconds
Time Taken: 0.00014 seconds

Memory Before: 8,608.039 KB
Memory After: 8,608.078 KB
Memory Used: 0.039 KB

SQL Query
SELECT COUNT(*) AS threads

FROM thread AS thread


WHERE thread.forumid = 4
	AND sticky = 0
	
	 AND visible = 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadrefforumid,forumid_lastpostforumid6const,const,const225Using index

Time Before: 0.14562 seconds
Time After: 0.14577 seconds
Time Taken: 0.00014 seconds

Memory Before: 8,612.781 KB
Memory After: 8,613.211 KB
Memory Used: 0.430 KB

SQL Query
SELECT COUNT(*) AS newthread
FROM thread AS thread


WHERE thread.forumid = 4
	AND thread.lastpost > 1534871758
	AND open <> 10
	AND sticky = 0
	
	 AND visible = 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadrangeforumid,forumid_lastpost,lastpostforumid10 1Using where

Time Before: 0.14595 seconds
Time After: 0.14606 seconds
Time Taken: 0.00011 seconds

Memory Before: 8,613.477 KB
Memory After: 8,613.859 KB
Memory Used: 0.383 KB

SQL Query
SELECT thread.threadid, lastpost, open
FROM thread AS thread
WHERE forumid = 4
	AND sticky = 1
	
	 AND visible = 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadrefforumid,forumid_lastpostforumid6const,const,const2 

Time Before: 0.14623 seconds
Time After: 0.14631 seconds
Time Taken: 0.00008 seconds

Memory Before: 8,613.578 KB
Memory After: 8,614.000 KB
Memory Used: 0.422 KB

SQL Query
SELECT  thread.threadid,
	thread.lastpost, thread.lastposter, thread.lastposterid, thread.lastpostid, thread.replycount, IF(thread.views<=thread.replycount, thread.replycount+1, thread.views) AS views
	
FROM thread AS thread


WHERE forumid = 4
	AND sticky = 0
	
	 AND visible = 1 
	
	
	
	
ORDER BY sticky DESC, lastpost DESC
LIMIT 0, 20
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadrefforumid,forumid_lastpostforumid6const,const,const225Using where

Time Before: 0.14651 seconds
Time After: 0.14668 seconds
Time Taken: 0.00017 seconds

Memory Before: 8,616.445 KB
Memory After: 8,616.648 KB
Memory Used: 0.203 KB

SQL Query
SELECT 
	IF(votenum >= 1, votenum, 0) AS votenum,
	IF(votenum >= 1 AND votenum > 0, votetotal / votenum, 0) AS voteavg,
 post.pagetext AS preview,
	thread.threadid, thread.title AS threadtitle, thread.forumid, thread.pollid, thread.open, thread.postusername, thread.postuserid, thread.iconid AS threadiconid,
	thread.dateline, thread.notes, thread.visible, thread.sticky, thread.votetotal, thread.attach, thread.lastpost, thread.lastposter, thread.lastposterid, thread.lastpostid, thread.replycount, IF(thread.views<=thread.replycount, thread.replycount+1, thread.views) AS views,
	thread.prefixid, thread.taglist, thread.hiddencount, thread.deletedcount,
	user.usergroupid, user.homepage, user.options AS useroptions, IF(userlist.friend = 'yes', 1, 0) AS isfriend,
	user.lastactivity, user.lastvisit, IF(user.options & 512, 1, 0) AS invisible
	
	
	
	
	
FROM thread AS thread
	LEFT JOIN user AS user ON (user.userid = thread.lastposterid)
	LEFT JOIN userlist AS userlist ON (userlist.relationid = user.userid AND userlist.type = 'buddy' AND userlist.userid = 0)
	
	
	
	LEFT JOIN post AS post ON(post.postid = thread.firstpostid)
	
	
	
WHERE thread.threadid IN (0,7954,8045,7723,131,7073,4882,4921,6339,5139,5110,4986,4911,4772,1302,4877,4854,4707,4830,4822,4778,3230,3253,2223) 
ORDER BY thread.sticky DESC, lastpost DESC
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadrangePRIMARYPRIMARY4 24Using where; Using filesort
1SIMPLEusereq_refPRIMARYPRIMARY4douglasr_bleachforuns.thread.lastposterid1 
1SIMPLEuserlisteq_refPRIMARY,userid,relationidPRIMARY9const,douglasr_bleachforuns.user.userid,const1 
1SIMPLEposteq_refPRIMARYPRIMARY4douglasr_bleachforuns.thread.firstpostid1 

Time Before: 0.14712 seconds
Time After: 0.14846 seconds
Time Taken: 0.00134 seconds

Memory Before: 8,620.336 KB
Memory After: 8,619.555 KB
Memory Used: -0.781 KB

SQL Query
UPDATE session
SET lastactivity = 1534871758, location = 'forumdisplay.php?f=4', inthread = 0, badlocation = 0
WHERE sessionhash = '7c68e5989bb06d62a7eac08f05040cd1'

Time Before: 0.18037 seconds
Time After: 0.18050 seconds
Time Taken: 0.00013 seconds

Memory Before: 9,394.422 KB
Memory After: 9,394.641 KB
Memory Used: 0.219 KB

Page generated in 0.17946696281433 seconds with 20 queries, spending 0.052671909332275 doing MySQL queries and 0.12679505348206 doing PHP things.
Shutdown Queries:
DISABLED