Including Functions.php

Time Before: 0.00395 seconds
Time After: 0.00915 seconds
Time Taken: 0.00520 seconds

Memory Before: 1,212.023 KB
Memory After: 1,953.313 KB
Memory Used: 741.289 KB

Connect to Database on Server: localhost

Time Before: 0.00920 seconds
Time After: 0.01102 seconds
Time Taken: 0.00183 seconds

Memory Before: 1,953.297 KB
Memory After: 1,953.867 KB
Memory Used: 0.570 KB

SQL Query
SET @@sql_mode = ''

Time Before: 0.01113 seconds
Time After: 0.01130 seconds
Time Taken: 0.00017 seconds

Memory Before: 1,953.914 KB
Memory After: 1,953.969 KB
Memory Used: 0.055 KB

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

Time Before: 0.01190 seconds
Time After: 0.01277 seconds
Time Taken: 0.00087 seconds

Memory Before: 1,955.445 KB
Memory After: 1,955.313 KB
Memory Used: -0.133 KB

Time Before: 0.01132 seconds
Time After: 0.01444 seconds
Time Taken: 0.00312 seconds

Memory Before: 1,953.758 KB
Memory After: 2,106.695 KB
Memory Used: 152.938 KB

Session Handling
SQL Query
SELECT *
FROM session
WHERE userid = 0
	AND host = '3.214.224.207'
	AND idhash = '75508b92f6772d183a3485d6e30f0520'
LIMIT 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEsessionALL    984Using where

Time Before: 0.01511 seconds
Time After: 0.01631 seconds
Time Taken: 0.00120 seconds

Memory Before: 2,123.859 KB
Memory After: 2,124.039 KB
Memory Used: 0.180 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,
			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.01683 seconds
Time After: 0.01731 seconds
Time Taken: 0.00048 seconds

Memory Before: 2,130.773 KB
Memory After: 2,130.953 KB
Memory Used: 0.180 KB

Time Before: 0.01471 seconds
Time After: 0.01741 seconds
Time Taken: 0.00269 seconds

Memory Before: 2,123.539 KB
Memory After: 2,184.117 KB
Memory Used: 60.578 KB

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

Time Before: 0.01911 seconds
Time After: 0.01940 seconds
Time Taken: 0.00030 seconds

Memory Before: 2,215.617 KB
Memory After: 2,215.922 KB
Memory Used: 0.305 KB

SQL Query
SELECT title, template
FROM template
WHERE templateid IN (64,153,509,511,510,164,161,163,160,162,168,170,154,167,155,156,169,171,166,560,570,499,563,558,564,67,66,68,63,62,339,290,291,292,293,559,562,571,312,313,314,315,513,576,575,577,580)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEtemplaterangePRIMARYPRIMARY4 47Using index condition

Time Before: 0.02087 seconds
Time After: 0.02222 seconds
Time Taken: 0.00135 seconds

Memory Before: 2,354.984 KB
Memory After: 2,354.852 KB
Memory Used: -0.133 KB

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

Time Before: 0.02497 seconds
Time After: 0.02534 seconds
Time Taken: 0.00037 seconds

Memory Before: 2,537.180 KB
Memory After: 2,537.484 KB
Memory Used: 0.305 KB

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
1SIMPLEmoderatorsystemuserid_forumid   1 
1SIMPLEuserconstPRIMARYPRIMARY4const1 

Time Before: 0.02616 seconds
Time After: 0.02638 seconds
Time Taken: 0.00023 seconds

Memory Before: 2,539.898 KB
Memory After: 2,539.953 KB
Memory Used: 0.055 KB

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

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

WHERE startdate <= 1634904046
	AND enddate >= 1634904046
	AND forumid IN (2,1,-1)
	
ORDER BY startdate DESC, announcement.announcementid DESC
LIMIT 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLE       Impossible WHERE noticed after reading const tables

Time Before: 0.02736 seconds
Time After: 0.02758 seconds
Time Taken: 0.00022 seconds

Memory Before: 2,577.313 KB
Memory After: 2,577.117 KB
Memory Used: -0.195 KB

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

FROM thread AS thread


WHERE forumid = 2
	AND sticky = 0
	
	 AND visible = 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadALLforumid   990Using where

Time Before: 0.02831 seconds
Time After: 0.02962 seconds
Time Taken: 0.00131 seconds

Memory Before: 2,578.281 KB
Memory After: 2,578.586 KB
Memory Used: 0.305 KB

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

Time Before: 0.02989 seconds
Time After: 0.03008 seconds
Time Taken: 0.00019 seconds

Memory Before: 2,578.781 KB
Memory After: 2,578.773 KB
Memory Used: -0.008 KB

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


WHERE forumid = 2
	AND sticky = 0
	
	 AND visible = 1 
	
	
	
	
ORDER BY sticky DESC, lastpost DESC
LIMIT 0, 20
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadindexforumidlastpost6 20Using where

Time Before: 0.03037 seconds
Time After: 0.03069 seconds
Time Taken: 0.00031 seconds

Memory Before: 2,579.344 KB
Memory After: 2,579.273 KB
Memory Used: -0.070 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, postusername, postuserid, thread.iconid AS threadiconid,
	thread.dateline, notes, thread.visible, sticky, votetotal, thread.attach, thread.lastpost, thread.lastposter, thread.lastpostid, thread.replycount, IF(thread.views<=thread.replycount, thread.replycount+1, thread.views) AS views,
	thread.prefixid, thread.taglist, hiddencount, deletedcount
	
	
	
	
	
FROM thread AS thread
	
	
	
	LEFT JOIN post AS post ON(post.postid = thread.firstpostid)
	
	
	
WHERE thread.threadid IN (0,990,989,988,987,986,985,984,983,982,981,980,979,978,977,976,975,974,973,972,971) 
ORDER BY sticky DESC, lastpost DESC
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadrangePRIMARYPRIMARY4 21Using index condition; Using filesort
1SIMPLEposteq_refPRIMARYPRIMARY4drc2.thread.firstpostid1 

Time Before: 0.03106 seconds
Time After: 0.03223 seconds
Time Taken: 0.00117 seconds

Memory Before: 2,580.703 KB
Memory After: 2,580.008 KB
Memory Used: -0.695 KB

SQL Query
UPDATE session
SET lastactivity = 1634904046, location = '/forumdisplay.php?f=2&explain=1', inforum = 2
WHERE sessionhash = '4fc318a6555332529e920ef12dbf8aea'

Time Before: 0.04057 seconds
Time After: 0.04078 seconds
Time Taken: 0.00021 seconds

Memory Before: 2,827.789 KB
Memory After: 2,827.664 KB
Memory Used: -0.125 KB

Page generated in 0.040183067321777 seconds with 14 queries, spending 0.010202884674072 doing MySQL queries and 0.029980182647705 doing PHP things.
Shutdown Queries:
DISABLED