Including Functions.php

Time Before: 0.00051 seconds
Time After: 0.00058 seconds
Time Taken: 0.00006 seconds

Memory Before: 442.688 KB
Memory After: 509.641 KB
Memory Used: 66.953 KB

Connect to Database on Server: 127.0.0.1

Time Before: 0.00061 seconds
Time After: 0.00335 seconds
Time Taken: 0.00274 seconds

Memory Before: 509.617 KB
Memory After: 510.508 KB
Memory Used: 0.891 KB

SQL Query
SET @@sql_mode = ''

Time Before: 0.00364 seconds
Time After: 0.00382 seconds
Time Taken: 0.00017 seconds

Memory Before: 510.531 KB
Memory After: 510.586 KB
Memory Used: 0.055 KB

Datastore Setup
SQL Query
SELECT *
FROM datastore
WHERE title IN ('iconcache','mailqueue','prefixcache','navdata','options','bitfields','attachmentcache','forumcache','usergroupcache','stylecache','languagecache','products','pluginlist','cron','profilefield','loadcache','noticecache','activitystream','routes')
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEdatastore rangePRIMARYPRIMARY52 19100.00Using index condition

Time Before: 0.00474 seconds
Time After: 0.00567 seconds
Time Taken: 0.00092 seconds

Memory Before: 512.352 KB
Memory After: 740.359 KB
Memory Used: 228.008 KB

Time Before: 0.00393 seconds
Time After: 0.01289 seconds
Time Taken: 0.00895 seconds

Memory Before: 510.352 KB
Memory After: 1,093.375 KB
Memory Used: 583.023 KB

Session Handling
SQL Query
SELECT *
FROM session
WHERE userid = 0
	AND host = '54.160.153.233'
	AND idhash = '6db15af73c61fa139dfe1c93584bb3d6'
LIMIT 1
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEsession refguest_lookup,user_activityguest_lookup55const,const,const1100.00 

Time Before: 0.01439 seconds
Time After: 0.01474 seconds
Time Taken: 0.00035 seconds

Memory Before: 1,257.281 KB
Memory After: 1,274.047 KB
Memory Used: 16.766 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_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLElanguage systemPRIMARY   1100.00 

Time Before: 0.01564 seconds
Time After: 0.01795 seconds
Time Taken: 0.00232 seconds

Memory Before: 1,265.281 KB
Memory After: 1,334.109 KB
Memory Used: 68.828 KB

Time Before: 0.01363 seconds
Time After: 0.01810 seconds
Time Taken: 0.00446 seconds

Memory Before: 1,253.508 KB
Memory After: 1,319.336 KB
Memory Used: 65.828 KB

SQL Query
SELECT COUNT(*) AS count FROM user WHERE usergroupid = 4
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEuser refusergroupidusergroupid2const2100.00Using index

Time Before: 0.06364 seconds
Time After: 0.06389 seconds
Time Taken: 0.00025 seconds

Memory Before: 1,513.766 KB
Memory After: 1,529.953 KB
Memory Used: 16.188 KB

SQL Query
SELECT *
FROM style
WHERE (styleid = 19 AND userselect = 1)
	OR styleid = 19
ORDER BY styleid ASC
LIMIT 1
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEstyle constPRIMARYPRIMARY2const1100.00 

Time Before: 0.06457 seconds
Time After: 0.06490 seconds
Time Taken: 0.00033 seconds

Memory Before: 1,506.945 KB
Memory After: 1,635.586 KB
Memory Used: 128.641 KB

End call of global.php: 0.068912029266357
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_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEmoderator ALLuserid_forumid   81100.00 
1SIMPLEuser eq_refPRIMARYPRIMARY4webdev.moderator.userid1100.00 

Time Before: 0.06961 seconds
Time After: 0.07020 seconds
Time Taken: 0.00059 seconds

Memory Before: 2,019.477 KB
Memory After: 2,052.109 KB
Memory Used: 32.633 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_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEforum ALL    52100.00 
1SIMPLEuser eq_refPRIMARYPRIMARY4webdev.forum.lastposterid1100.00 
1SIMPLEuserlist eq_refPRIMARY,userid,relationidPRIMARY9const,webdev.user.userid,const1100.00 

Time Before: 0.07157 seconds
Time After: 0.07234 seconds
Time Taken: 0.00077 seconds

Memory Before: 2,117.305 KB
Memory After: 2,152.641 KB
Memory Used: 35.336 KB

SQL Query
SELECT title, template
FROM template
WHERE templateid IN (14945,16579,24709,24713,24711,23955,23957,16583,23953,16667,23951,23939,24831,24963,24689,16601,25469,25468,24891,14189,14188,14190,14185,14184,14951,14953,14949,14947,14193,14194,14961,24321,21591,16585,24221,24215,24217,16589,24929,0,0,24889,24811,24261,24263,24267,24269,24715,24953,24917,24817,24819,23915,23913,23921,21563,21565)
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEtemplate rangePRIMARYPRIMARY4 56100.00Using index condition

Time Before: 0.07480 seconds
Time After: 0.07559 seconds
Time Taken: 0.00079 seconds

Memory Before: 2,315.273 KB
Memory After: 2,483.844 KB
Memory Used: 168.570 KB

SQL Query
SELECT template
FROM template
WHERE templateid = 16587
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEtemplate constPRIMARYPRIMARY4const1100.00 

Time Before: 0.07657 seconds
Time After: 0.07672 seconds
Time Taken: 0.00016 seconds

Memory Before: 2,491.617 KB
Memory After: 2,507.898 KB
Memory Used: 16.281 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 > 1519091160
ORDER BY username ASC, lastactivity DESC
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEsession ALLlast_activity   81075.68Using where; Using temporary; Using filesort
1SIMPLEuser eq_refPRIMARYPRIMARY4webdev.session.userid1100.00 

Time Before: 0.07955 seconds
Time After: 0.08177 seconds
Time Taken: 0.00222 seconds

Memory Before: 2,564.086 KB
Memory After: 2,704.594 KB
Memory Used: 140.508 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 <= 1519092960
	AND enddate >= 1519092960
	AND forumid IN (47,39,-1)
	
ORDER BY startdate DESC, announcement.announcementid DESC
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEannouncement rangeforumid,enddateenddate6 228.20Using index condition; Using filesort
1SIMPLEuser eq_refPRIMARYPRIMARY4webdev.announcement.userid1100.00 

Time Before: 0.08397 seconds
Time After: 0.08433 seconds
Time Taken: 0.00036 seconds

Memory Before: 2,605.164 KB
Memory After: 2,621.242 KB
Memory Used: 16.078 KB

SQL Query
SELECT COUNT(*) AS threads

FROM thread AS thread


WHERE thread.forumid = 47
	AND sticky = 0
	
	 AND visible = 1
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEthread refforumid,forumid_lastpostforumid6const,const,const1012100.00Using index

Time Before: 0.09358 seconds
Time After: 0.09411 seconds
Time Taken: 0.00053 seconds

Memory Before: 2,664.813 KB
Memory After: 2,681.219 KB
Memory Used: 16.406 KB

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


WHERE thread.forumid = 47
	AND thread.lastpost > 1519092960
	AND open <> 10
	AND sticky = 0
	
	 AND visible = 1
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEthread rangeforumid,forumid_lastpost,lastpostforumid10 190.00Using index condition; Using where

Time Before: 0.09447 seconds
Time After: 0.09474 seconds
Time Taken: 0.00027 seconds

Memory Before: 2,665.367 KB
Memory After: 2,681.773 KB
Memory Used: 16.406 KB

SQL Query
SELECT thread.threadid, lastpost, open
FROM thread AS thread
WHERE forumid = 47
	AND sticky = 1
	
	 AND visible = 1
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEthread refforumid,forumid_lastpostforumid6const,const,const1100.00 

Time Before: 0.09511 seconds
Time After: 0.09531 seconds
Time Taken: 0.00020 seconds

Memory Before: 2,665.266 KB
Memory After: 2,681.422 KB
Memory Used: 16.156 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 = 47
	AND sticky = 0
	
	 AND visible = 1 
	
	
	
	
ORDER BY sticky DESC, lastpost DESC
LIMIT 0, 25
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEthread refforumid,forumid_lastpostforumid6const,const,const1012100.00Using where

Time Before: 0.09574 seconds
Time After: 0.09616 seconds
Time Taken: 0.00042 seconds

Memory Before: 2,666.016 KB
Memory After: 2,686.305 KB
Memory Used: 20.289 KB

SQL Query
SELECT 
	IF(votenum >= 2, votenum, 0) AS votenum,
	IF(votenum >= 2 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.userid,
	user.membergroupids, user.infractiongroupids, 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,368569,368105,361779,368508,368073,368425,368351,368193,296829,368049,359179,358727,367639,367629,367217,366059,367039,366941,366637,366743,359597,365811,365859,365645,362399) 
ORDER BY thread.sticky DESC, lastpost DESC
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEthread rangePRIMARYPRIMARY4 26100.00Using where; Using filesort
1SIMPLEuser eq_refPRIMARYPRIMARY4webdev.thread.lastposterid1100.00 
1SIMPLEuserlist eq_refPRIMARY,userid,relationidPRIMARY9const,webdev.user.userid,const1100.00 
1SIMPLEpost eq_refPRIMARYPRIMARY4webdev.thread.firstpostid1100.00 

Time Before: 0.09733 seconds
Time After: 0.09881 seconds
Time Taken: 0.00148 seconds

Memory Before: 2,668.922 KB
Memory After: 2,722.648 KB
Memory Used: 53.727 KB

SQL Query
UPDATE session
SET lastactivity = 1519092960, location = 'forumdisplay.php?f=47', inforum = 47, badlocation = 0
WHERE sessionhash = '03a868e7de6695e25c3babe8bba72068'

Time Before: 0.16191 seconds
Time After: 0.16432 seconds
Time Taken: 0.00241 seconds

Memory Before: 2,926.148 KB
Memory After: 2,926.023 KB
Memory Used: -0.125 KB

Page generated in 0.16136813163757 seconds with 18 queries, spending 0.017279624938965 doing MySQL queries and 0.14408850669861 doing PHP things.
Shutdown Queries:
DISABLED