Including Functions.php

Time Before: 0.00156 seconds
Time After: 0.00196 seconds
Time Taken: 0.00040 seconds

Memory Before: 502.359 KB
Memory After: 525.156 KB
Memory Used: 22.797 KB

Connect to Database on Server: localhost

Time Before: 0.00207 seconds
Time After: 0.00263 seconds
Time Taken: 0.00056 seconds

Memory Before: 525.094 KB
Memory After: 526.039 KB
Memory Used: 0.945 KB

SQL Query
SET @@sql_mode = ''

Time Before: 0.00293 seconds
Time After: 0.00306 seconds
Time Taken: 0.00013 seconds

Memory Before: 526.594 KB
Memory After: 527.133 KB
Memory Used: 0.539 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
1SIMPLEdatastorerangePRIMARYPRIMARY50 17Using index condition

Time Before: 0.00405 seconds
Time After: 0.00488 seconds
Time Taken: 0.00083 seconds

Memory Before: 530.055 KB
Memory After: 530.906 KB
Memory Used: 0.852 KB

Time Before: 0.00312 seconds
Time After: 0.00765 seconds
Time Taken: 0.00453 seconds

Memory Before: 526.383 KB
Memory After: 1,112.617 KB
Memory Used: 586.234 KB

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

Time Before: 0.01100 seconds
Time After: 0.01132 seconds
Time Taken: 0.00032 seconds

Memory Before: 1,610.516 KB
Memory After: 1,611.125 KB
Memory Used: 0.609 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
1SIMPLElanguagesystemPRIMARY   1 

Time Before: 0.01241 seconds
Time After: 0.01304 seconds
Time Taken: 0.00063 seconds

Memory Before: 1,622.891 KB
Memory After: 1,622.852 KB
Memory Used: -0.039 KB

Time Before: 0.01016 seconds
Time After: 0.01323 seconds
Time Taken: 0.00307 seconds

Memory Before: 1,602.602 KB
Memory After: 1,675.578 KB
Memory Used: 72.977 KB

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

Time Before: 0.01396 seconds
Time After: 0.01421 seconds
Time Taken: 0.00025 seconds

Memory Before: 1,676.961 KB
Memory After: 1,677.539 KB
Memory Used: 0.578 KB

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

Time Before: 0.01837 seconds
Time After: 0.01880 seconds
Time Taken: 0.00043 seconds

Memory Before: 1,985.422 KB
Memory After: 1,986.016 KB
Memory Used: 0.594 KB

End call of global.php: 0.020814895629883
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   172 
1SIMPLEusereq_refPRIMARYPRIMARY4business_business.moderator.userid1 

Time Before: 0.02196 seconds
Time After: 0.02323 seconds
Time Taken: 0.00127 seconds

Memory Before: 2,512.172 KB
Memory After: 2,512.898 KB
Memory Used: 0.727 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, 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    36 
1SIMPLEusereq_refPRIMARYPRIMARY4business_business.forum.lastposterid1 
1SIMPLEuserlisteq_refPRIMARY,relationid,useridPRIMARY9const,business_business.user.userid,const1Using where

Time Before: 0.02466 seconds
Time After: 0.02569 seconds
Time Taken: 0.00103 seconds

Memory Before: 2,533.641 KB
Memory After: 2,538.969 KB
Memory Used: 5.328 KB

SQL Query
SELECT title, template
FROM template
WHERE templateid IN (648,767,1155,1157,1156,778,779,775,777,774,776,770,1245,1195,1145,1254,1264,1205,1275,67,66,68,63,62,651,652,650,649,71,72,656,961,1257,907,911,908,909,910,1273,0,0,1236,1238,931,932,934,935,1158,1200,1199,1249,1201,758,757,761)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEtemplaterangePRIMARYPRIMARY4 54Using index condition

Time Before: 0.02836 seconds
Time After: 0.02959 seconds
Time Taken: 0.00123 seconds

Memory Before: 2,819.563 KB
Memory After: 2,821.109 KB
Memory Used: 1.547 KB

SQL Query
SELECT *
FROM navigation
WHERE state & 4 = 0
ORDER BY navtype, displayorder
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEnavigationALL    27Using where; Using filesort

Time Before: 0.03569 seconds
Time After: 0.03609 seconds
Time Taken: 0.00040 seconds

Memory Before: 2,976.750 KB
Memory After: 2,980.211 KB
Memory Used: 3.461 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 <= 1731439712
	AND enddate >= 1731439712
	AND forumid IN (5,-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.04283 seconds
Time After: 0.04320 seconds
Time Taken: 0.00036 seconds

Memory Before: 3,114.977 KB
Memory After: 3,115.047 KB
Memory Used: 0.070 KB

SQL Query
SELECT COUNT(*) AS threads

FROM thread AS thread


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

Time Before: 0.04398 seconds
Time After: 0.04432 seconds
Time Taken: 0.00034 seconds

Memory Before: 3,119.750 KB
Memory After: 3,120.234 KB
Memory Used: 0.484 KB

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


WHERE thread.forumid = 5
	AND thread.lastpost > 1731439712
	AND open <> 10
	AND sticky = 0
	
	 AND visible = 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadrangeforumid,forumid_lastpost,lastpostforumid_lastpost6 1Using index condition; Using where

Time Before: 0.04491 seconds
Time After: 0.04523 seconds
Time Taken: 0.00032 seconds

Memory Before: 3,120.477 KB
Memory After: 3,120.922 KB
Memory Used: 0.445 KB

SQL Query
SELECT thread.threadid, lastpost, open
FROM thread AS thread
WHERE forumid = 5
	AND sticky = 1
	
	 AND visible = 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadrefforumid,forumid_lastpostforumid_lastpost2const1Using where

Time Before: 0.04575 seconds
Time After: 0.04605 seconds
Time Taken: 0.00030 seconds

Memory Before: 3,120.508 KB
Memory After: 3,120.953 KB
Memory Used: 0.445 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 = 5
	AND sticky = 0
	
	 AND visible = 1 
	
	
	
	
ORDER BY sticky DESC, lastpost DESC
LIMIT 0, 20
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadrefforumid,forumid_lastpostforumid_lastpost2const1Using where

Time Before: 0.04665 seconds
Time After: 0.04701 seconds
Time Taken: 0.00035 seconds

Memory Before: 3,122.289 KB
Memory After: 3,122.586 KB
Memory Used: 0.297 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,21) 
ORDER BY thread.sticky DESC, lastpost DESC
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadrangePRIMARYPRIMARY4 2Using index condition; Using filesort
1SIMPLEusereq_refPRIMARYPRIMARY4business_business.thread.lastposterid1 
1SIMPLEuserlisteq_refPRIMARY,relationid,useridPRIMARY9const,business_business.user.userid,const1Using where
1SIMPLEposteq_refPRIMARYPRIMARY4business_business.thread.firstpostid1 

Time Before: 0.04798 seconds
Time After: 0.04869 seconds
Time Taken: 0.00072 seconds

Memory Before: 3,125.750 KB
Memory After: 3,125.391 KB
Memory Used: -0.359 KB

SQL Query
UPDATE session
SET lastactivity = 1731439712, location = 'forumdisplay.php?f=5', inforum = 5, badlocation = 0
WHERE sessionhash = '965d65c76dda569fb4af96dccc3709fe'

Time Before: 0.05506 seconds
Time After: 0.05527 seconds
Time Taken: 0.00021 seconds

Memory Before: 3,386.992 KB
Memory After: 3,387.219 KB
Memory Used: 0.227 KB

Page generated in 0.054245948791504 seconds with 17 queries, spending 0.0096895694732666 doing MySQL queries and 0.044556379318237 doing PHP things.
Shutdown Queries:
DISABLED