Including Functions.php

Time Before: 0.00047 seconds
Time After: 0.00052 seconds
Time Taken: 0.00005 seconds

Memory Before: 443.086 KB
Memory After: 510.039 KB
Memory Used: 66.953 KB

Connect to Database on Server: 127.0.0.1

Time Before: 0.00055 seconds
Time After: 0.00123 seconds
Time Taken: 0.00068 seconds

Memory Before: 510.016 KB
Memory After: 510.906 KB
Memory Used: 0.891 KB

SQL Query
SET @@sql_mode = ''

Time Before: 0.00149 seconds
Time After: 0.00164 seconds
Time Taken: 0.00015 seconds

Memory Before: 510.930 KB
Memory After: 510.984 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.00285 seconds
Time After: 0.00364 seconds
Time Taken: 0.00079 seconds

Memory Before: 512.750 KB
Memory After: 740.758 KB
Memory Used: 228.008 KB

Time Before: 0.00167 seconds
Time After: 0.01294 seconds
Time Taken: 0.01127 seconds

Memory Before: 510.750 KB
Memory After: 1,093.773 KB
Memory Used: 583.023 KB

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

Time Before: 0.01457 seconds
Time After: 0.01506 seconds
Time Taken: 0.00049 seconds

Memory Before: 1,257.711 KB
Memory After: 1,274.477 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.01631 seconds
Time After: 0.01697 seconds
Time Taken: 0.00065 seconds

Memory Before: 1,265.711 KB
Memory After: 1,334.539 KB
Memory Used: 68.828 KB

Time Before: 0.01362 seconds
Time After: 0.01712 seconds
Time Taken: 0.00349 seconds

Memory Before: 1,253.938 KB
Memory After: 1,319.766 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.08604 seconds
Time After: 0.08634 seconds
Time Taken: 0.00031 seconds

Memory Before: 1,514.227 KB
Memory After: 1,530.414 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.08714 seconds
Time After: 0.08775 seconds
Time Taken: 0.00061 seconds

Memory Before: 1,507.406 KB
Memory After: 1,636.047 KB
Memory Used: 128.641 KB

End call of global.php: 0.093168020248413
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.09404 seconds
Time After: 0.09496 seconds
Time Taken: 0.00092 seconds

Memory Before: 2,019.938 KB
Memory After: 2,052.570 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.09658 seconds
Time After: 0.09775 seconds
Time Taken: 0.00117 seconds

Memory Before: 2,117.766 KB
Memory After: 2,153.102 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.10080 seconds
Time After: 0.10180 seconds
Time Taken: 0.00100 seconds

Memory Before: 2,315.617 KB
Memory After: 2,484.188 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.10308 seconds
Time After: 0.10336 seconds
Time Taken: 0.00028 seconds

Memory Before: 2,492.180 KB
Memory After: 2,508.461 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 > 1519482014
ORDER BY username ASC, lastactivity DESC
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEsession ALLlast_activity   71477.45Using where; Using temporary; Using filesort
1SIMPLEuser eq_refPRIMARYPRIMARY4webdev.session.userid1100.00 

Time Before: 0.10647 seconds
Time After: 0.10958 seconds
Time Taken: 0.00311 seconds

Memory Before: 2,562.305 KB
Memory After: 2,692.000 KB
Memory Used: 129.695 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 <= 1519483814
	AND enddate >= 1519483814
	AND forumid IN (57,-1)
	
ORDER BY startdate DESC, announcement.announcementid DESC
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEannouncement rangeforumid,enddateenddate6 226.92Using index condition; Using filesort
1SIMPLEuser eq_refPRIMARYPRIMARY4webdev.announcement.userid1100.00 

Time Before: 0.11241 seconds
Time After: 0.11288 seconds
Time Taken: 0.00047 seconds

Memory Before: 2,603.766 KB
Memory After: 2,619.844 KB
Memory Used: 16.078 KB

SQL Query
SELECT COUNT(*) AS threads

FROM thread AS thread


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

Time Before: 0.12058 seconds
Time After: 0.12095 seconds
Time Taken: 0.00037 seconds

Memory Before: 2,663.445 KB
Memory After: 2,679.852 KB
Memory Used: 16.406 KB

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


WHERE thread.forumid = 57
	AND thread.lastpost > 1519483814
	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.12155 seconds
Time After: 0.12190 seconds
Time Taken: 0.00036 seconds

Memory Before: 2,664.000 KB
Memory After: 2,680.406 KB
Memory Used: 16.406 KB

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

Time Before: 0.12238 seconds
Time After: 0.12266 seconds
Time Taken: 0.00028 seconds

Memory Before: 2,663.898 KB
Memory After: 2,680.148 KB
Memory Used: 16.250 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 = 57
	AND sticky = 0
	
	 AND visible = 1 
	
	
	
	
ORDER BY sticky DESC, lastpost DESC
LIMIT 0, 25
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEthread refforumid,forumid_lastpostforumid6const,const,const39100.00Using where

Time Before: 0.12312 seconds
Time After: 0.12362 seconds
Time Taken: 0.00051 seconds

Memory Before: 2,664.680 KB
Memory After: 2,684.969 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,368526,367191,368360,368107,368067,368329,368085,367943,367941,367763,367761,367135,367397,367269,367339,367309,367267,367207,367177,367155,366863,367137,366997,366969,366697,366219) 
ORDER BY thread.sticky DESC, lastpost DESC
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEthread rangePRIMARYPRIMARY4 27100.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.12477 seconds
Time After: 0.12655 seconds
Time Taken: 0.00178 seconds

Memory Before: 2,667.586 KB
Memory After: 2,700.234 KB
Memory Used: 32.648 KB

SQL Query
UPDATE session
SET lastactivity = 1519483814, location = 'forumdisplay.php?f=57', inforum = 57, badlocation = 0
WHERE sessionhash = 'b0ec8b412e05cc28b2e7c3dda505e463'

Time Before: 0.20406 seconds
Time After: 0.20683 seconds
Time Taken: 0.00277 seconds

Memory Before: 2,917.641 KB
Memory After: 2,917.516 KB
Memory Used: -0.125 KB

Page generated in 0.20337510108948 seconds with 18 queries, spending 0.01668643951416 doing MySQL queries and 0.18668866157532 doing PHP things.
Shutdown Queries:
DISABLED