Including Functions.php

Time Before: 0.00286 seconds
Time After: 0.00493 seconds
Time Taken: 0.00208 seconds

Memory Before: 502.586 KB
Memory After: 525.367 KB
Memory Used: 22.781 KB

Connect to Database on Server: localhost

Time Before: 0.00512 seconds
Time After: 0.00619 seconds
Time Taken: 0.00107 seconds

Memory Before: 525.305 KB
Memory After: 526.219 KB
Memory Used: 0.914 KB

SQL Query
SET @@sql_mode = ''

Time Before: 0.00643 seconds
Time After: 0.00658 seconds
Time Taken: 0.00016 seconds

Memory Before: 526.773 KB
Memory After: 527.297 KB
Memory Used: 0.523 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.00763 seconds
Time After: 0.00842 seconds
Time Taken: 0.00079 seconds

Memory Before: 530.219 KB
Memory After: 531.070 KB
Memory Used: 0.852 KB

Time Before: 0.00664 seconds
Time After: 0.01082 seconds
Time Taken: 0.00418 seconds

Memory Before: 526.547 KB
Memory After: 1,112.773 KB
Memory Used: 586.227 KB

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

Time Before: 0.01464 seconds
Time After: 0.01498 seconds
Time Taken: 0.00034 seconds

Memory Before: 1,610.656 KB
Memory After: 1,611.266 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.01593 seconds
Time After: 0.01654 seconds
Time Taken: 0.00062 seconds

Memory Before: 1,623.039 KB
Memory After: 1,623.000 KB
Memory Used: -0.039 KB

Time Before: 0.01383 seconds
Time After: 0.01675 seconds
Time Taken: 0.00292 seconds

Memory Before: 1,602.742 KB
Memory After: 1,675.742 KB
Memory Used: 73.000 KB

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

Time Before: 0.01747 seconds
Time After: 0.01767 seconds
Time Taken: 0.00020 seconds

Memory Before: 1,677.125 KB
Memory After: 1,677.703 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.02158 seconds
Time After: 0.02217 seconds
Time Taken: 0.00059 seconds

Memory Before: 1,985.609 KB
Memory After: 1,986.203 KB
Memory Used: 0.594 KB

End call of global.php: 0.024004936218262
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.02515 seconds
Time After: 0.02639 seconds
Time Taken: 0.00124 seconds

Memory Before: 2,512.344 KB
Memory After: 2,513.070 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.02788 seconds
Time After: 0.02881 seconds
Time Taken: 0.00093 seconds

Memory Before: 2,533.813 KB
Memory After: 2,539.141 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.03127 seconds
Time After: 0.03235 seconds
Time Taken: 0.00108 seconds

Memory Before: 2,819.781 KB
Memory After: 2,821.328 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.03800 seconds
Time After: 0.03838 seconds
Time Taken: 0.00038 seconds

Memory Before: 2,976.844 KB
Memory After: 2,980.305 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 <= 1708708392
	AND enddate >= 1708708392
	AND forumid IN (29,-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.04451 seconds
Time After: 0.04480 seconds
Time Taken: 0.00030 seconds

Memory Before: 3,115.086 KB
Memory After: 3,115.164 KB
Memory Used: 0.078 KB

SQL Query
SELECT COUNT(*) AS threads

FROM thread AS thread


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

Time Before: 0.04540 seconds
Time After: 0.04578 seconds
Time Taken: 0.00038 seconds

Memory Before: 3,119.859 KB
Memory After: 3,120.352 KB
Memory Used: 0.492 KB

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


WHERE thread.forumid = 29
	AND thread.lastpost > 1708708392
	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.04622 seconds
Time After: 0.04648 seconds
Time Taken: 0.00026 seconds

Memory Before: 3,120.586 KB
Memory After: 3,121.031 KB
Memory Used: 0.445 KB

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

Time Before: 0.04692 seconds
Time After: 0.04714 seconds
Time Taken: 0.00023 seconds

Memory Before: 3,120.617 KB
Memory After: 3,121.063 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 = 29
	AND sticky = 0
	
	 AND visible = 1 
	
	
	
	
ORDER BY sticky DESC, lastpost DESC
LIMIT 0, 20
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadrefforumid,forumid_lastpostforumid_lastpost2const6Using where

Time Before: 0.04764 seconds
Time After: 0.04807 seconds
Time Taken: 0.00043 seconds

Memory Before: 3,122.398 KB
Memory After: 3,123.008 KB
Memory Used: 0.609 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,2697,3,38,32,19,10) 
ORDER BY thread.sticky DESC, lastpost DESC
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadrangePRIMARYPRIMARY4 7Using 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.04919 seconds
Time After: 0.05019 seconds
Time Taken: 0.00101 seconds

Memory Before: 3,125.914 KB
Memory After: 3,126.906 KB
Memory Used: 0.992 KB

SQL Query
UPDATE session
SET lastactivity = 1708708392, location = 'forumdisplay.php?f=29', inforum = 29, badlocation = 0
WHERE sessionhash = 'aaa5aa5df6f7b0fd940454775e681467'

Time Before: 0.06820 seconds
Time After: 0.06848 seconds
Time Taken: 0.00028 seconds

Memory Before: 3,479.039 KB
Memory After: 3,479.258 KB
Memory Used: 0.219 KB

Page generated in 0.067098140716553 seconds with 17 queries, spending 0.010270357131958 doing MySQL queries and 0.056827783584595 doing PHP things.
Shutdown Queries:
DISABLED