Including Functions.php

Time Before: 0.00941 seconds
Time After: 0.01762 seconds
Time Taken: 0.00821 seconds

Memory Before: 407.609 KB
Memory After: 415.500 KB
Memory Used: 7.891 KB

Connect to Database on Server: sql5c11b.megasqlservers.com

Time Before: 0.01772 seconds
Time After: 0.02349 seconds
Time Taken: 0.00576 seconds

Memory Before: 415.453 KB
Memory After: 416.375 KB
Memory Used: 0.922 KB

Datastore Setup
SQL Query
SELECT title, data
FROM datastore
WHERE title IN ('','options','bitfields','forumcache','usergroupcache','stylecache','languagecache','products','pluginlist','cron','iconcache','mailqueue')
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEdatastorerangePRIMARYPRIMARY17 12Using index condition

Time Before: 0.02432 seconds
Time After: 0.02493 seconds
Time Taken: 0.00061 seconds

Memory Before: 419.375 KB
Memory After: 419.914 KB
Memory Used: 0.539 KB

Time Before: 0.02379 seconds
Time After: 0.02544 seconds
Time Taken: 0.00165 seconds

Memory Before: 416.047 KB
Memory After: 695.633 KB
Memory Used: 279.586 KB

Session Handling
SQL Query
SELECT *
FROM session
WHERE userid = 0
	AND host = '18.208.211.150'
	AND idhash = '9c89e8c7ea50bbc741d71cc49afe0bca'
LIMIT 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEsessionALL    364Using where

Time Before: 0.02613 seconds
Time After: 0.02654 seconds
Time Taken: 0.00041 seconds

Memory Before: 704.664 KB
Memory After: 705.070 KB
Memory Used: 0.406 KB

SQL Query
SELECT languageid,
			phrasegroup_forumdisplay AS phrasegroup_forumdisplay,
			phrasegroup_inlinemod AS phrasegroup_inlinemod,
			phrasegroup_global AS phrasegroup_global,
			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
1SIMPLElanguagesystemPRIMARY   1 

Time Before: 0.02814 seconds
Time After: 0.02887 seconds
Time Taken: 0.00072 seconds

Memory Before: 714.156 KB
Memory After: 714.008 KB
Memory Used: -0.148 KB

Time Before: 0.02557 seconds
Time After: 0.02893 seconds
Time Taken: 0.00336 seconds

Memory Before: 700.188 KB
Memory After: 745.953 KB
Memory Used: 45.766 KB

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

Time Before: 0.03292 seconds
Time After: 0.03345 seconds
Time Taken: 0.00053 seconds

Memory Before: 857.086 KB
Memory After: 857.563 KB
Memory Used: 0.477 KB

SQL Query
SELECT title, template
FROM template
WHERE templateid IN (3148,3352,3353,3149,3159,3156,3158,3155,3157,3162,3164,3150,3161,3151,3152,3163,3165,3385,3341,450,3422,3389,3260,3405,418,3384,3387,3395,3246,3247,3248,3249,3355,3400,3399,3401,3404)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEtemplaterangePRIMARYPRIMARY4 37Using index condition

Time Before: 0.03429 seconds
Time After: 0.03527 seconds
Time Taken: 0.00098 seconds

Memory Before: 984.805 KB
Memory After: 985.125 KB
Memory Used: 0.320 KB

End call of global.php: 0.035903930664062
SQL Query
SELECT forum.forumid, lastpost, lastposter, lastthread, lastthreadid, lasticonid, threadcount, replycount
	
FROM forum AS forum
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEforumALL    6 

Time Before: 0.04117 seconds
Time After: 0.04200 seconds
Time Taken: 0.00082 seconds

Memory Before: 1,092.453 KB
Memory After: 1,092.867 KB
Memory Used: 0.414 KB

SQL Query
SELECT moderator.*, user.username,
IF(user.displaygroupid = 0, user.usergroupid, user.displaygroupid) AS displaygroupid
FROM moderator AS moderator
INNER JOIN user AS user USING(userid)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLE       Impossible WHERE noticed after reading const tables

Time Before: 0.04255 seconds
Time After: 0.04274 seconds
Time Taken: 0.00018 seconds

Memory Before: 1,102.328 KB
Memory After: 1,102.695 KB
Memory Used: 0.367 KB

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

Time Before: 0.04351 seconds
Time After: 0.04389 seconds
Time Taken: 0.00038 seconds

Memory Before: 1,113.102 KB
Memory After: 1,113.289 KB
Memory Used: 0.188 KB

SQL Query
SELECT
	announcementid, startdate, title, announcement.views,
	user.username, user.userid, user.usertitle, user.customtitle
FROM announcement AS announcement
LEFT JOIN user AS user ON(user.userid = announcement.userid)
WHERE startdate <= 1553480881
	AND enddate >= 1553480881
	AND forumid IN (3,1,-1)
ORDER BY startdate DESC
LIMIT 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLE       Impossible WHERE noticed after reading const tables

Time Before: 0.04466 seconds
Time After: 0.04552 seconds
Time Taken: 0.00087 seconds

Memory Before: 1,126.773 KB
Memory After: 1,126.992 KB
Memory Used: 0.219 KB

SQL Query
SELECT COUNT(*) AS threads,
SUM(IF(thread.lastpost >= 1553480881 AND open <> 10, 1, 0)) AS newthread

FROM thread AS thread

WHERE forumid = 3
	AND sticky = 0
	 AND visible = 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadrefforumidforumid6const,const,const2 

Time Before: 0.04589 seconds
Time After: 0.04629 seconds
Time Taken: 0.00039 seconds

Memory Before: 1,130.531 KB
Memory After: 1,130.891 KB
Memory Used: 0.359 KB

SQL Query
SELECT threadid, lastpost, open
FROM thread AS thread
WHERE forumid = 3
	AND sticky = 1
	 AND visible = 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadrefforumidforumid6const,const,const1 

Time Before: 0.04660 seconds
Time After: 0.04679 seconds
Time Taken: 0.00019 seconds

Memory Before: 1,132.141 KB
Memory After: 1,132.578 KB
Memory Used: 0.438 KB

SQL Query
SELECT  threadid
	
FROM thread AS thread

WHERE forumid = 3
	AND sticky = 0
	 AND visible = 1 
	
	
	
	
ORDER BY sticky DESC, thread.lastpost DESC
LIMIT 0, 20
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadrefforumidforumid6const,const,const2Using where

Time Before: 0.04707 seconds
Time After: 0.04718 seconds
Time Taken: 0.00011 seconds

Memory Before: 1,133.367 KB
Memory After: 1,133.750 KB
Memory Used: 0.383 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, pollid, open, replycount, postusername, postuserid, thread.iconid AS threadiconid,
	thread.lastpost, lastposter, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, notes, thread.visible, sticky, votetotal, thread.attach,
	hiddencount
	
	
	
FROM thread AS thread
	
	
	
	LEFT JOIN post AS post ON(post.postid = thread.firstpostid)
	
	
WHERE thread.threadid IN (0,11954,11953,11952) 
ORDER BY sticky DESC, thread.lastpost DESC
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadALLPRIMARY   5Using where; Using filesort
1SIMPLEposteq_refPRIMARYPRIMARY4skiextrm_skiextreme_ca.thread.firstpostid1 

Time Before: 0.04761 seconds
Time After: 0.04776 seconds
Time Taken: 0.00014 seconds

Memory Before: 1,135.195 KB
Memory After: 1,135.078 KB
Memory Used: -0.117 KB

Page generated in 0.04973 seconds with 13 queries, spending 0.01211404800415 doing MySQL queries and 0.03761595199585 doing PHP things.
Shutdown Queries:

SQL Query
UPDATE session
SET lastactivity = 1553480881, location = '/members/forumdisplay.php?f=3&explain=1', inforum = 3, inthread = 0, incalendar = 0, badlocation = 0
WHERE sessionhash = 'd5379c1b046fdc0923e1a4ae083c80c6'

Time Before: 0.05008 seconds
Time After: 0.05027 seconds
Time Taken: 0.00019 seconds

Memory Before: 1,424.234 KB
Memory After: 1,424.414 KB
Memory Used: 0.180 KB