Including Functions.php

Time Before: 0.01210 seconds
Time After: 0.02886 seconds
Time Taken: 0.01677 seconds

Memory Before: 535.492 KB
Memory After: 665.664 KB
Memory Used: 130.172 KB

Connect to Database on Server: localhost

Time Before: 0.02892 seconds
Time After: 0.02934 seconds
Time Taken: 0.00042 seconds

Memory Before: 665.617 KB
Memory After: 666.195 KB
Memory Used: 0.578 KB

SQL Query
SET @@sql_mode = ''

Time Before: 0.02956 seconds
Time After: 0.02976 seconds
Time Taken: 0.00020 seconds

Memory Before: 666.219 KB
Memory After: 666.273 KB
Memory Used: 0.055 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')
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEdatastorerangePRIMARYPRIMARY50 16Using index condition

Time Before: 0.03013 seconds
Time After: 0.03059 seconds
Time Taken: 0.00047 seconds

Memory Before: 668.305 KB
Memory After: 1,067.828 KB
Memory Used: 399.523 KB

Time Before: 0.02979 seconds
Time After: 0.03226 seconds
Time Taken: 0.00247 seconds

Memory Before: 666.039 KB
Memory After: 1,688.109 KB
Memory Used: 1,022.070 KB

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

Time Before: 0.03585 seconds
Time After: 0.03603 seconds
Time Taken: 0.00018 seconds

Memory Before: 1,846.203 KB
Memory After: 1,862.320 KB
Memory Used: 16.117 KB

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

Time Before: 0.03641 seconds
Time After: 0.03655 seconds
Time Taken: 0.00015 seconds

Memory Before: 1,853.453 KB
Memory After: 1,870.203 KB
Memory Used: 16.750 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.03721 seconds
Time After: 0.03778 seconds
Time Taken: 0.00058 seconds

Memory Before: 1,860.727 KB
Memory After: 1,973.539 KB
Memory Used: 112.813 KB

Time Before: 0.03610 seconds
Time After: 0.03785 seconds
Time Taken: 0.00175 seconds

Memory Before: 1,848.750 KB
Memory After: 1,962.680 KB
Memory Used: 113.930 KB

SQL Query
SELECT userip
FROM vsavilxh_guests AS vsavilxh_guests
WHERE userip = '18.232.188.89'
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEvsavilxh_guestsALL    242Using where

Time Before: 0.04293 seconds
Time After: 0.04312 seconds
Time Taken: 0.00019 seconds

Memory Before: 2,189.844 KB
Memory After: 2,206.078 KB
Memory Used: 16.234 KB

SQL Query
UPDATE vsavilxh_guests
SET dateline = '1594313416'
WHERE userip = '18.232.188.89'

Time Before: 0.04315 seconds
Time After: 0.35482 seconds
Time Taken: 0.31167 seconds

Memory Before: 2,206.227 KB
Memory After: 2,206.164 KB
Memory Used: -0.063 KB

SQL Query
DELETE FROM vsavilxh_guests WHERE dateline < '1594227016'

Time Before: 0.35486 seconds
Time After: 0.35507 seconds
Time Taken: 0.00022 seconds

Memory Before: 2,189.453 KB
Memory After: 2,189.484 KB
Memory Used: 0.031 KB

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

Time Before: 0.35535 seconds
Time After: 0.35562 seconds
Time Taken: 0.00027 seconds

Memory Before: 2,174.906 KB
Memory After: 2,287.531 KB
Memory Used: 112.625 KB

End call of global.php: 0.35626697540283
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   3 
1SIMPLEusereq_refPRIMARYPRIMARY4mihangam_mforum.moderator.userid1 

Time Before: 0.35954 seconds
Time After: 0.35974 seconds
Time Taken: 0.00021 seconds

Memory Before: 2,565.031 KB
Memory After: 2,581.469 KB
Memory Used: 16.438 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    131 
1SIMPLEusereq_refPRIMARYPRIMARY4mihangam_mforum.forum.lastposterid1 
1SIMPLEuserlisteq_refPRIMARY,relationid,useridPRIMARY9const,mihangam_mforum.user.userid,const1Using where

Time Before: 0.36014 seconds
Time After: 0.36091 seconds
Time Taken: 0.00078 seconds

Memory Before: 2,572.461 KB
Memory After: 2,636.781 KB
Memory Used: 64.320 KB

SQL Query
SELECT title, template
FROM template
WHERE templateid IN (74,1146,1531,1533,1532,2220,1158,2217,2219,2216,2218,1149,1622,1572,1521,2233,2231,2234,2235,0,0,79,73,72,2344,2347,2101,75,80,81,82,1337,1634,2221,2222,1286,1287,1650,0,0,1613,1615,1307,1308,1310,1311,1534,1577,1576,1626,1578,1137,1136,1140,2249,1931,1932,1129,1132,1130,1295,1131,2226)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEtemplaterangePRIMARYPRIMARY4 60Using index condition

Time Before: 0.36209 seconds
Time After: 0.36254 seconds
Time Taken: 0.00045 seconds

Memory Before: 2,905.727 KB
Memory After: 3,094.891 KB
Memory Used: 189.164 KB

SQL Query
SELECT * FROM molding ORDER BY molding.order ASC
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEmoldingALL    11Using filesort

Time Before: 0.36361 seconds
Time After: 0.36378 seconds
Time Taken: 0.00016 seconds

Memory Before: 3,119.438 KB
Memory After: 3,137.383 KB
Memory Used: 17.945 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 <= 1594313416
	AND enddate >= 1594313416
	AND forumid IN (12,1,-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.36765 seconds
Time After: 0.36782 seconds
Time Taken: 0.00017 seconds

Memory Before: 3,281.953 KB
Memory After: 3,297.805 KB
Memory Used: 15.852 KB

SQL Query
SELECT COUNT(*) AS threads

FROM thread AS thread


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

Time Before: 0.36813 seconds
Time After: 0.36832 seconds
Time Taken: 0.00019 seconds

Memory Before: 3,298.930 KB
Memory After: 3,315.320 KB
Memory Used: 16.391 KB

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


WHERE thread.forumid = 12
	AND thread.lastpost > 1594313416
	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.36856 seconds
Time After: 0.36871 seconds
Time Taken: 0.00015 seconds

Memory Before: 3,299.359 KB
Memory After: 3,315.750 KB
Memory Used: 16.391 KB

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

Time Before: 0.36896 seconds
Time After: 0.36913 seconds
Time Taken: 0.00018 seconds

Memory Before: 3,299.352 KB
Memory After: 3,316.195 KB
Memory Used: 16.844 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 = 12
	AND sticky = 0
	
	 AND visible = 1 
	
	
	
	
ORDER BY sticky DESC, lastpost DESC
LIMIT 0, 20
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadrefforumid,forumid_lastpostforumid_lastpost2const340Using where

Time Before: 0.36945 seconds
Time After: 0.36969 seconds
Time Taken: 0.00024 seconds

Memory Before: 3,300.055 KB
Memory After: 3,319.086 KB
Memory Used: 19.031 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,1273,1122,20622,20619,5851,16536,16521,16506,16491,16476,16461,16447,16432,16417,16398,16401,16397,16389,16386,16385,660,1557,2138,2362,2546,1831,1612,1647,2132,2086) 
ORDER BY thread.sticky DESC, lastpost DESC
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadrangePRIMARYPRIMARY4 31Using index condition; Using filesort
1SIMPLEusereq_refPRIMARYPRIMARY4mihangam_mforum.thread.lastposterid1 
1SIMPLEuserlisteq_refPRIMARY,relationid,useridPRIMARY9const,mihangam_mforum.user.userid,const1Using where
1SIMPLEposteq_refPRIMARYPRIMARY4mihangam_mforum.thread.firstpostid1 

Time Before: 0.37009 seconds
Time After: 0.37091 seconds
Time Taken: 0.00082 seconds

Memory Before: 3,303.055 KB
Memory After: 3,427.727 KB
Memory Used: 124.672 KB

SQL Query
UPDATE session
SET lastactivity = 1594313416, location = 'forumdisplay.php?f=12', inforum = 12, inthread = 0, badlocation = 0
WHERE sessionhash = '42b2da7ea011dbc90845eca1d417642f'

Time Before: 0.39796 seconds
Time After: 0.39823 seconds
Time Taken: 0.00027 seconds

Memory Before: 3,934.281 KB
Memory After: 3,934.125 KB
Memory Used: -0.156 KB

Page generated in 0.39647316932678 seconds with 20 queries, spending 0.31796312332153 doing MySQL queries and 0.078510046005249 doing PHP things.
Shutdown Queries:
DISABLED