Including Functions.php

Time Before: 0.00086 seconds
Time After: 0.00110 seconds
Time Taken: 0.00024 seconds

Memory Before: 511.156 KB
Memory After: 533.727 KB
Memory Used: 22.570 KB

Connect to Database on Server: localhost

Time Before: 0.00117 seconds
Time After: 0.00149 seconds
Time Taken: 0.00032 seconds

Memory Before: 533.664 KB
Memory After: 534.656 KB
Memory Used: 0.992 KB

SQL Query
SET @@sql_mode = ''

Time Before: 0.00165 seconds
Time After: 0.00176 seconds
Time Taken: 0.00011 seconds

Memory Before: 535.211 KB
Memory After: 535.734 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.00257 seconds
Time After: 0.00292 seconds
Time Taken: 0.00035 seconds

Memory Before: 538.641 KB
Memory After: 539.477 KB
Memory Used: 0.836 KB

Time Before: 0.00180 seconds
Time After: 0.00511 seconds
Time Taken: 0.00330 seconds

Memory Before: 534.984 KB
Memory After: 1,432.297 KB
Memory Used: 897.313 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.00620 seconds
Time After: 0.00629 seconds
Time Taken: 0.00009 seconds

Memory Before: 1,911.289 KB
Memory After: 1,911.813 KB
Memory Used: 0.523 KB

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

Time Before: 0.00715 seconds
Time After: 0.00761 seconds
Time Taken: 0.00046 seconds

Memory Before: 1,929.688 KB
Memory After: 1,930.320 KB
Memory Used: 0.633 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.00887 seconds
Time After: 0.00903 seconds
Time Taken: 0.00016 seconds

Memory Before: 1,941.820 KB
Memory After: 1,941.773 KB
Memory Used: -0.047 KB

Time Before: 0.00657 seconds
Time After: 0.00920 seconds
Time Taken: 0.00263 seconds

Memory Before: 1,922.516 KB
Memory After: 2,011.453 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.00968 seconds
Time After: 0.00976 seconds
Time Taken: 0.00008 seconds

Memory Before: 2,012.977 KB
Memory After: 2,013.539 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.01360 seconds
Time After: 0.01380 seconds
Time Taken: 0.00020 seconds

Memory Before: 2,474.539 KB
Memory After: 2,475.133 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.01685 seconds
Time After: 0.01714 seconds
Time Taken: 0.00029 seconds

Memory Before: 3,362.414 KB
Memory After: 3,364.531 KB
Memory Used: 2.117 KB

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

Time Before: 0.02003 seconds
Time After: 0.02012 seconds
Time Taken: 0.00008 seconds

Memory Before: 3,576.984 KB
Memory After: 3,577.531 KB
Memory Used: 0.547 KB

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

Time Before: 0.02088 seconds
Time After: 0.02097 seconds
Time Taken: 0.00008 seconds

Memory Before: 3,588.039 KB
Memory After: 3,588.586 KB
Memory Used: 0.547 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.02571 seconds
Time After: 0.02658 seconds
Time Taken: 0.00087 seconds

Memory Before: 3,585.531 KB
Memory After: 3,587.492 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    2411Using where; Using filesort

Time Before: 0.05730 seconds
Time After: 0.06086 seconds
Time Taken: 0.00355 seconds

Memory Before: 3,619.102 KB
Memory After: 3,620.250 KB
Memory Used: 1.148 KB

End call of global.php: 0.066573143005371
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.06730 seconds
Time After: 0.06801 seconds
Time Taken: 0.00070 seconds

Memory Before: 3,654.234 KB
Memory After: 3,658.703 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.06995 seconds
Time After: 0.07086 seconds
Time Taken: 0.00091 seconds

Memory Before: 3,802.547 KB
Memory After: 3,810.250 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.07348 seconds
Time After: 0.07359 seconds
Time Taken: 0.00011 seconds

Memory Before: 3,982.375 KB
Memory After: 3,987.367 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 <= 1529749804
	AND enddate >= 1529749804
	AND forumid IN (30,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.08923 seconds
Time After: 0.08967 seconds
Time Taken: 0.00043 seconds

Memory Before: 4,180.453 KB
Memory After: 4,180.508 KB
Memory Used: 0.055 KB

SQL Query
SELECT COUNT(*) AS threads

FROM thread AS thread


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

Time Before: 0.09028 seconds
Time After: 0.09036 seconds
Time Taken: 0.00008 seconds

Memory Before: 4,185.766 KB
Memory After: 4,186.258 KB
Memory Used: 0.492 KB

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


WHERE thread.forumid = 30
	AND thread.lastpost > 1529749804
	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.09087 seconds
Time After: 0.09121 seconds
Time Taken: 0.00034 seconds

Memory Before: 4,186.492 KB
Memory After: 4,186.930 KB
Memory Used: 0.438 KB

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

Time Before: 0.09167 seconds
Time After: 0.09175 seconds
Time Taken: 0.00008 seconds

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

Time Before: 0.09258 seconds
Time After: 0.09267 seconds
Time Taken: 0.00009 seconds

Memory Before: 4,188.352 KB
Memory After: 4,189.844 KB
Memory Used: 1.492 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,1603,1569,1562,1529,1527,1524,1512,1511,1510,1509,1508,1462,1242,1236,1040,1235,1228,1220,1065,950) 
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.09359 seconds
Time After: 0.09492 seconds
Time Taken: 0.00134 seconds

Memory Before: 4,192.172 KB
Memory After: 4,196.906 KB
Memory Used: 4.734 KB

SQL Query
UPDATE session
SET lastactivity = 1529749804, location = 'forumdisplay.php?f=30', inthread = 0, badlocation = 0
WHERE sessionhash = '17dd2a46a36536878b4709ce78faa3c1'

Time Before: 0.17667 seconds
Time After: 0.17745 seconds
Time Taken: 0.00077 seconds

Memory Before: 4,917.383 KB
Memory After: 4,917.602 KB
Memory Used: 0.219 KB

Page generated in 0.1746621131897 seconds with 22 queries, spending 0.011519193649292 doing MySQL queries and 0.16314291954041 doing PHP things.
Shutdown Queries:
DISABLED