Including Functions.php

Time Before: 0.00675 seconds
Time After: 0.01631 seconds
Time Taken: 0.00956 seconds

Memory Before: 1,789.211 KB
Memory After: 2,984.094 KB
Memory Used: 1,194.883 KB

Connect to Database on Server: localhost

Time Before: 0.01641 seconds
Time After: 0.01725 seconds
Time Taken: 0.00084 seconds

Memory Before: 2,984.078 KB
Memory After: 2,985.023 KB
Memory Used: 0.945 KB

SQL Query
SET @@sql_mode = ''

Time Before: 0.01740 seconds
Time After: 0.01748 seconds
Time Taken: 0.00008 seconds

Memory Before: 2,985.711 KB
Memory After: 2,986.266 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.01790 seconds
Time After: 0.01849 seconds
Time Taken: 0.00058 seconds

Memory Before: 2,989.422 KB
Memory After: 2,989.719 KB
Memory Used: 0.297 KB

Time Before: 0.01751 seconds
Time After: 0.02044 seconds
Time Taken: 0.00294 seconds

Memory Before: 2,985.516 KB
Memory After: 3,954.047 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.02390 seconds
Time After: 0.02405 seconds
Time Taken: 0.00016 seconds

Memory Before: 4,591.047 KB
Memory After: 4,591.461 KB
Memory Used: 0.414 KB

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

Time Before: 0.02475 seconds
Time After: 0.02486 seconds
Time Taken: 0.00011 seconds

Memory Before: 4,650.383 KB
Memory After: 4,650.797 KB
Memory Used: 0.414 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.02540 seconds
Time After: 0.02566 seconds
Time Taken: 0.00027 seconds

Memory Before: 4,662.453 KB
Memory After: 4,662.211 KB
Memory Used: -0.242 KB

Time Before: 0.02445 seconds
Time After: 0.02585 seconds
Time Taken: 0.00140 seconds

Memory Before: 4,643.133 KB
Memory After: 4,753.219 KB
Memory Used: 110.086 KB

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

Time Before: 0.02628 seconds
Time After: 0.02635 seconds
Time Taken: 0.00007 seconds

Memory Before: 4,761.641 KB
Memory After: 4,762.148 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.05537 seconds
Time After: 0.05560 seconds
Time Taken: 0.00023 seconds

Memory Before: 6,757.820 KB
Memory After: 6,758.250 KB
Memory Used: 0.430 KB

End call of global.php: 0.057537078857422
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.05997 seconds
Time After: 0.06016 seconds
Time Taken: 0.00019 seconds

Memory Before: 7,641.438 KB
Memory After: 7,641.789 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.06089 seconds
Time After: 0.06135 seconds
Time Taken: 0.00046 seconds

Memory Before: 7,672.898 KB
Memory After: 7,672.828 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.06359 seconds
Time After: 0.06414 seconds
Time Taken: 0.00055 seconds

Memory Before: 8,012.055 KB
Memory After: 8,012.195 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 = 34
ORDER BY
	sd.founded DESC LIMIT 50
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEsdALL    207058Using where; Using filesort
1SIMPLEsteq_refPRIMARYPRIMARY4douglasr_bleachforuns.sd.stid1 

Time Before: 0.08524 seconds
Time After: 0.11282 seconds
Time Taken: 0.02759 seconds

Memory Before: 8,526.508 KB
Memory After: 8,526.766 KB
Memory Used: 0.258 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.11392 seconds
Time After: 0.11411 seconds
Time Taken: 0.00019 seconds

Memory Before: 8,445.883 KB
Memory After: 8,446.359 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 > 1516277829
ORDER BY username ASC, lastactivity DESC
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEsessionrangelast_activitylast_activity4 15049Using where; Using temporary; Using filesort
1SIMPLEusereq_refPRIMARYPRIMARY4douglasr_bleachforuns.session.userid1 

Time Before: 0.11663 seconds
Time After: 0.17177 seconds
Time Taken: 0.05514 seconds

Memory Before: 8,570.969 KB
Memory After: 8,571.125 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 <= 1519077829
	AND enddate >= 1519077829
	AND forumid IN (34,21,-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.21325 seconds
Time After: 0.21343 seconds
Time Taken: 0.00018 seconds

Memory Before: 8,647.758 KB
Memory After: 8,647.797 KB
Memory Used: 0.039 KB

SQL Query
SELECT COUNT(*) AS threads

FROM thread AS thread


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

Time Before: 0.21373 seconds
Time After: 0.21388 seconds
Time Taken: 0.00015 seconds

Memory Before: 8,652.500 KB
Memory After: 8,652.930 KB
Memory Used: 0.430 KB

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


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

Time Before: 0.21408 seconds
Time After: 0.21418 seconds
Time Taken: 0.00010 seconds

Memory Before: 8,653.195 KB
Memory After: 8,653.578 KB
Memory Used: 0.383 KB

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

Time Before: 0.21437 seconds
Time After: 0.21446 seconds
Time Taken: 0.00009 seconds

Memory Before: 8,653.305 KB
Memory After: 8,653.719 KB
Memory Used: 0.414 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 = 34
	AND sticky = 0
	
	 AND visible = 1 
	
	
	
	
ORDER BY sticky DESC, lastpost DESC
LIMIT 0, 20
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadrefforumid,forumid_lastpostforumid6const,const,const247Using where

Time Before: 0.21469 seconds
Time After: 0.21485 seconds
Time Taken: 0.00016 seconds

Memory Before: 8,656.164 KB
Memory After: 8,656.367 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,7921,7915,7782,7771,7766,7764,7762,7755,7753,7751,7748,7744,7704,7703,7700,7698,7695,7693,7683,7679,3800,7570) 
ORDER BY thread.sticky DESC, lastpost DESC
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadrangePRIMARYPRIMARY4 23Using 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.21532 seconds
Time After: 0.21601 seconds
Time Taken: 0.00069 seconds

Memory Before: 8,660.031 KB
Memory After: 8,659.250 KB
Memory Used: -0.781 KB

SQL Query
UPDATE session
SET lastactivity = 1519077829, location = 'forumdisplay.php?f=34', inforum = 34, badlocation = 0
WHERE sessionhash = '773721aec9c94b0ccfbeea207f77cd19'

Time Before: 0.24720 seconds
Time After: 0.24736 seconds
Time Taken: 0.00017 seconds

Memory Before: 9,384.039 KB
Memory After: 9,384.258 KB
Memory Used: 0.219 KB

Page generated in 0.24616098403931 seconds with 20 queries, spending 0.087993621826172 doing MySQL queries and 0.15816736221313 doing PHP things.
Shutdown Queries:
DISABLED