Including Functions.php

Time Before: 0.00079 seconds
Time After: 0.00105 seconds
Time Taken: 0.00026 seconds

Memory Before: 511.469 KB
Memory After: 534.039 KB
Memory Used: 22.570 KB

Connect to Database on Server: localhost

Time Before: 0.00116 seconds
Time After: 0.00160 seconds
Time Taken: 0.00044 seconds

Memory Before: 533.977 KB
Memory After: 534.969 KB
Memory Used: 0.992 KB

SQL Query
SET @@sql_mode = ''

Time Before: 0.00183 seconds
Time After: 0.00199 seconds
Time Taken: 0.00016 seconds

Memory Before: 535.523 KB
Memory After: 536.047 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 where

Time Before: 0.00296 seconds
Time After: 0.00335 seconds
Time Taken: 0.00039 seconds

Memory Before: 538.953 KB
Memory After: 539.789 KB
Memory Used: 0.836 KB

Time Before: 0.00206 seconds
Time After: 0.00569 seconds
Time Taken: 0.00363 seconds

Memory Before: 535.297 KB
Memory After: 1,432.617 KB
Memory Used: 897.320 KB

SQL Query
SELECT *
FROM datastore
WHERE title IN ('profilefield')
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLE       Impossible WHERE noticed after reading const tables

Time Before: 0.00713 seconds
Time After: 0.00726 seconds
Time Taken: 0.00013 seconds

Memory Before: 1,911.617 KB
Memory After: 1,912.141 KB
Memory Used: 0.523 KB

Session Handling
SQL Query
SELECT *
FROM session
WHERE userid = 0
	AND host = '54.80.83.123'
	AND idhash = 'e98977cf16f9974f3fa23a70d429238d'
LIMIT 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEsessionrefuser_activity,guest_lookupguest_lookup51const,const,const2Using where

Time Before: 0.00883 seconds
Time After: 0.00947 seconds
Time Taken: 0.00064 seconds

Memory Before: 1,929.984 KB
Memory After: 1,930.625 KB
Memory Used: 0.641 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 = 2
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLElanguageconstPRIMARYPRIMARY2const1 

Time Before: 0.01145 seconds
Time After: 0.01172 seconds
Time Taken: 0.00027 seconds

Memory Before: 1,942.133 KB
Memory After: 1,942.086 KB
Memory Used: -0.047 KB

Time Before: 0.00781 seconds
Time After: 0.01198 seconds
Time Taken: 0.00417 seconds

Memory Before: 1,922.828 KB
Memory After: 2,011.766 KB
Memory Used: 88.938 KB

SQL Query
SELECT *
FROM datastore
WHERE title IN ('routes','profilefield')
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEdatastorerangePRIMARYPRIMARY50 2Using where

Time Before: 0.01276 seconds
Time After: 0.01290 seconds
Time Taken: 0.00014 seconds

Memory Before: 2,013.289 KB
Memory After: 2,013.852 KB
Memory Used: 0.563 KB

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

Time Before: 0.01723 seconds
Time After: 0.01746 seconds
Time Taken: 0.00023 seconds

Memory Before: 2,474.859 KB
Memory After: 2,475.453 KB
Memory Used: 0.594 KB

SQL Query
SELECT title, template
FROM template
WHERE templateid IN (1706,543,931,933,932,554,555,551,553,1310,552,546,1021,971,921,1315,1313,1420,1051,0,0,429,423,422,1700,428,1694,1724,430,431,1688,737,1033,1414,1417,1415,685,1416,1049,0,0,1012,1014,707,708,1418,711,934,976,975,1025,977,534,533,537,1365,1322,1323,1342,1347,1343,1334,1349,1333,1341,1336,1344,1354,1340,1346,1357,1355,1356,1348,1352,1351,1337,1353,1338,1339,1345,1335,1350,1370,1409,1459,1458,1460,1472)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEtemplaterangePRIMARYPRIMARY4 86Using where

Time Before: 0.02060 seconds
Time After: 0.02092 seconds
Time Taken: 0.00033 seconds

Memory Before: 3,362.695 KB
Memory After: 3,364.813 KB
Memory Used: 2.117 KB

SQL Query
SELECT template
FROM template
WHERE templateid = 1471
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEtemplateconstPRIMARYPRIMARY4const1 

Time Before: 0.02375 seconds
Time After: 0.02386 seconds
Time Taken: 0.00011 seconds

Memory Before: 3,577.273 KB
Memory After: 3,577.820 KB
Memory Used: 0.547 KB

SQL Query
SELECT template
FROM template
WHERE templateid = 1470
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEtemplateconstPRIMARYPRIMARY4const1 

Time Before: 0.02458 seconds
Time After: 0.02467 seconds
Time Taken: 0.00009 seconds

Memory Before: 3,588.328 KB
Memory After: 3,588.891 KB
Memory Used: 0.563 KB

SQL Query
SELECT thread.threadid, thread.title, thread.lastpost, thread.forumid, thread.replycount, thread.postusername, thread.postuserid, thread.lastposter, thread.lastposterid, thread.dateline, thread.views, thread.visible, thread.open, user.usergroupid, user.displaygroupid
FROM thread AS thread
LEFT JOIN user AS user ON (user.userid = thread.lastposterid)
WHERE NOT ISNULL(thread.threadid) AND thread.visible = '1' AND thread.open!='10'  AND thread.forumid NOT IN(3,51)
ORDER BY lastpost DESC
LIMIT 0, 15
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadindexPRIMARY,forumid,forumid_lastpostlastpost4 15Using where
1SIMPLEusereq_refPRIMARYPRIMARY4rolandviet_rlvn.thread.lastposterid1 

Time Before: 0.02951 seconds
Time After: 0.03032 seconds
Time Taken: 0.00081 seconds

Memory Before: 3,585.797 KB
Memory After: 3,587.758 KB
Memory Used: 1.961 KB

SQL Query
SELECT userid, usergroupid, displaygroupid, username, posts
FROM user AS user
WHERE posts > '0' 
ORDER BY posts DESC
LIMIT 0, 15
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEuserALL    2410Using where; Using filesort

Time Before: 0.06190 seconds
Time After: 0.06200 seconds
Time Taken: 0.00010 seconds

Memory Before: 3,619.039 KB
Memory After: 3,620.188 KB
Memory Used: 1.148 KB

End call of global.php: 0.06761622428894
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   58 
1SIMPLEusereq_refPRIMARYPRIMARY4rolandviet_rlvn.moderator.userid1 

Time Before: 0.06837 seconds
Time After: 0.06895 seconds
Time Taken: 0.00057 seconds

Memory Before: 3,653.898 KB
Memory After: 3,658.367 KB
Memory Used: 4.469 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    52 
1SIMPLEusereq_refPRIMARYPRIMARY4rolandviet_rlvn.forum.lastposterid1 
1SIMPLEuserlisteq_refPRIMARY,relationid,useridPRIMARY9const,rolandviet_rlvn.user.userid,const1Using where

Time Before: 0.07084 seconds
Time After: 0.07183 seconds
Time Taken: 0.00099 seconds

Memory Before: 3,802.242 KB
Memory After: 3,809.945 KB
Memory Used: 7.703 KB

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

Time Before: 0.07431 seconds
Time After: 0.07442 seconds
Time Taken: 0.00011 seconds

Memory Before: 3,982.086 KB
Memory After: 3,987.078 KB
Memory Used: 4.992 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 <= 1537356652
	AND enddate >= 1537356652
	AND forumid IN (32,29,-1)
	
ORDER BY startdate DESC, announcement.announcementid DESC
LIMIT 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEannouncementrangeforumid,startdatestartdate6 1Using index condition; Using filesort
1SIMPLEusereq_refPRIMARYPRIMARY4rolandviet_rlvn.announcement.userid1 

Time Before: 0.09031 seconds
Time After: 0.09128 seconds
Time Taken: 0.00098 seconds

Memory Before: 4,180.086 KB
Memory After: 4,180.164 KB
Memory Used: 0.078 KB

SQL Query
SELECT COUNT(*) AS threads

FROM thread AS thread


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

Time Before: 0.09193 seconds
Time After: 0.09225 seconds
Time Taken: 0.00032 seconds

Memory Before: 4,185.422 KB
Memory After: 4,185.938 KB
Memory Used: 0.516 KB

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


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

Time Before: 0.09279 seconds
Time After: 0.09318 seconds
Time Taken: 0.00039 seconds

Memory Before: 4,186.148 KB
Memory After: 4,186.594 KB
Memory Used: 0.445 KB

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

Time Before: 0.09365 seconds
Time After: 0.09397 seconds
Time Taken: 0.00032 seconds

Memory Before: 4,186.180 KB
Memory After: 4,186.625 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 = 32
	AND sticky = 0
	
	 AND visible = 1 
	
	
	
	
ORDER BY sticky DESC, lastpost DESC
LIMIT 0, 20
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadrefforumid,forumid_lastpostforumid6const,const,const43Using where

Time Before: 0.09485 seconds
Time After: 0.09531 seconds
Time Taken: 0.00046 seconds

Memory Before: 4,188.016 KB
Memory After: 4,189.500 KB
Memory Used: 1.484 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,664,1615,1611,1545,1543,1505,1341,1052,978,954,948,936,923,900,860,858,815,809,807,806) 
ORDER BY thread.sticky DESC, lastpost DESC
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadrangePRIMARYPRIMARY4 21Using where; Using filesort
1SIMPLEusereq_refPRIMARYPRIMARY4rolandviet_rlvn.thread.lastposterid1 
1SIMPLEuserlisteq_refPRIMARY,relationid,useridPRIMARY9const,rolandviet_rlvn.user.userid,const1Using where
1SIMPLEposteq_refPRIMARYPRIMARY4rolandviet_rlvn.thread.firstpostid1 

Time Before: 0.09623 seconds
Time After: 0.09747 seconds
Time Taken: 0.00124 seconds

Memory Before: 4,191.766 KB
Memory After: 4,196.523 KB
Memory Used: 4.758 KB

SQL Query
UPDATE session
SET lastactivity = 1537356652, location = 'forumdisplay.php?f=32', inforum = 32, badlocation = 0
WHERE sessionhash = '8116787d5f6be1b15c486a610157a355'

Time Before: 0.17534 seconds
Time After: 0.17681 seconds
Time Taken: 0.00147 seconds

Memory Before: 4,901.180 KB
Memory After: 4,901.398 KB
Memory Used: 0.219 KB

Page generated in 0.17313313484192 seconds with 22 queries, spending 0.010700941085815 doing MySQL queries and 0.1624321937561 doing PHP things.
Shutdown Queries:
DISABLED