Including Functions.php

Time Before: 0.00627 seconds
Time After: 0.01625 seconds
Time Taken: 0.00999 seconds

Memory Before: 1,569.500 KB
Memory After: 2,548.727 KB
Memory Used: 979.227 KB

Connect to Database on Server: localhost

Time Before: 0.01634 seconds
Time After: 0.01808 seconds
Time Taken: 0.00174 seconds

Memory Before: 2,548.680 KB
Memory After: 2,549.250 KB
Memory Used: 0.570 KB

SQL Query
SET @@sql_mode = ''

Time Before: 0.01833 seconds
Time After: 0.01842 seconds
Time Taken: 0.00009 seconds

Memory Before: 2,549.273 KB
Memory After: 2,549.328 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_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEdatastorerangePRIMARYPRIMARY150 19Using where

Time Before: 0.01894 seconds
Time After: 0.02100 seconds
Time Taken: 0.00206 seconds

Memory Before: 2,551.094 KB
Memory After: 2,551.023 KB
Memory Used: -0.070 KB

Time Before: 0.01844 seconds
Time After: 0.03235 seconds
Time Taken: 0.01391 seconds

Memory Before: 2,549.094 KB
Memory After: 3,716.273 KB
Memory Used: 1,167.180 KB

SQL Query
SELECT *
FROM datastore
WHERE title IN ('dbtech_vbshop_category','dbtech_vbshop_currency','dbtech_vbshop_currency2','dbtech_vbshop_item','dbtech_vbshop_itemtype','dbtech_vbshop_lottery','dbtech_vbshop_lotteryprize','dbtech_vbshop_shop')
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEdatastorerangePRIMARYPRIMARY150 8Using where

Time Before: 0.03505 seconds
Time After: 0.03554 seconds
Time Taken: 0.00049 seconds

Memory Before: 3,943.969 KB
Memory After: 3,943.836 KB
Memory Used: -0.133 KB

Session Handling
SQL Query
SELECT *
FROM session
WHERE userid = 0
	AND host = '3.218.67.1'
	AND idhash = '82210d689a1c0826d8336693b925fddd'
LIMIT 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEsessionrefuser_activity,guest_lookupguest_lookup237const,const,const2Using where

Time Before: 0.03773 seconds
Time After: 0.03787 seconds
Time Taken: 0.00014 seconds

Memory Before: 4,082.219 KB
Memory After: 4,082.523 KB
Memory Used: 0.305 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_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLElanguagesystemPRIMARY   1 

Time Before: 0.03900 seconds
Time After: 0.03952 seconds
Time Taken: 0.00052 seconds

Memory Before: 4,089.086 KB
Memory After: 4,089.516 KB
Memory Used: 0.430 KB

Time Before: 0.03730 seconds
Time After: 0.03969 seconds
Time Taken: 0.00240 seconds

Memory Before: 4,079.703 KB
Memory After: 4,168.102 KB
Memory Used: 88.398 KB

SQL Query
SELECT MAX(permissions & 1) AS perm
FROM cms_permissions
WHERE nodeid = 1 AND usergroupid IN (1)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEcms_permissionsconstusergroupid,nodeidusergroupid8const,const1 

Time Before: 0.05011 seconds
Time After: 0.05023 seconds
Time Taken: 0.00012 seconds

Memory Before: 4,860.039 KB
Memory After: 4,860.063 KB
Memory Used: 0.023 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.05175 seconds
Time After: 0.05221 seconds
Time Taken: 0.00045 seconds

Memory Before: 4,952.992 KB
Memory After: 4,953.297 KB
Memory Used: 0.305 KB

End call of global.php: 0.056003093719482
SQL Query
SELECT title, template
FROM template
WHERE templateid IN (421,541,1386,931,930,552,1748,1744,1743,1746,1742,544,990,1056,919,1731,1544,1736,1020,0,0,426,420,419,424,425,423,422,427,428,429,735,1009,1734,685,682,683,684,1039,0,0,1019,980,705,706,708,709,932,1051,1033,983,984,532,531,535,1326,85,1314,1312,1313,1315,1383,1382,0,1600,1588,1717,1716,1708,1718)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEtemplaterangePRIMARYPRIMARY4 66Using where

Time Before: 0.06166 seconds
Time After: 0.06262 seconds
Time Taken: 0.00097 seconds

Memory Before: 5,802.930 KB
Memory After: 5,802.797 KB
Memory Used: -0.133 KB

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   1 
1SIMPLEusereq_refPRIMARYPRIMARY4driftrpc_forum.moderator.userid1 

Time Before: 0.06772 seconds
Time After: 0.06798 seconds
Time Taken: 0.00026 seconds

Memory Before: 6,108.789 KB
Memory After: 6,108.719 KB
Memory Used: -0.070 KB

SQL Query
SELECT dbtech_vbshop_purchase FROM user WHERE userid = 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEuserconstPRIMARYPRIMARY4const1 

Time Before: 0.06836 seconds
Time After: 0.06845 seconds
Time Taken: 0.00009 seconds

Memory Before: 6,120.617 KB
Memory After: 6,120.922 KB
Memory Used: 0.305 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    123 
1SIMPLEusereq_refPRIMARYPRIMARY4driftrpc_forum.forum.lastposterid1 
1SIMPLEuserlisteq_refPRIMARY,relationid,useridPRIMARY9const,driftrpc_forum.user.userid,const1Using where

Time Before: 0.07247 seconds
Time After: 0.07355 seconds
Time Taken: 0.00108 seconds

Memory Before: 6,240.578 KB
Memory After: 6,240.758 KB
Memory Used: 0.180 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 > 1582264778
ORDER BY username ASC, lastactivity DESC
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEsessionrangelast_activitylast_activity4 77Using where; Using temporary; Using filesort
1SIMPLEusereq_refPRIMARYPRIMARY4driftrpc_forum.session.userid1 

Time Before: 0.07647 seconds
Time After: 0.07789 seconds
Time Taken: 0.00142 seconds

Memory Before: 6,650.086 KB
Memory After: 6,650.078 KB
Memory Used: -0.008 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 <= 1582273778
	AND enddate >= 1582273778
	AND forumid IN (54,5,-1)
	
ORDER BY startdate DESC, announcement.announcementid DESC
LIMIT 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEannouncementrangeforumid,startdatestartdate6 1Using index condition; Using filesort
1SIMPLEusereq_refPRIMARYPRIMARY4driftrpc_forum.announcement.userid1 

Time Before: 0.08272 seconds
Time After: 0.08296 seconds
Time Taken: 0.00024 seconds

Memory Before: 6,737.398 KB
Memory After: 6,736.953 KB
Memory Used: -0.445 KB

SQL Query
SELECT COUNT(*) AS threads

FROM thread AS thread


WHERE thread.forumid = 54
	AND sticky = 0
	
	 AND visible = 1 
	
	
	
	 AND thread.threadid NOT IN(SELECT threadid FROM dbtech_vbshop_threadban WHERE userid = 0)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1PRIMARYthreadrefforumid,forumid_lastpostforumid6const,const,const1Using where
2DEPENDENT SUBQUERY       Impossible WHERE noticed after reading const tables

Time Before: 0.08498 seconds
Time After: 0.08520 seconds
Time Taken: 0.00023 seconds

Memory Before: 6,739.008 KB
Memory After: 6,739.313 KB
Memory Used: 0.305 KB

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


WHERE thread.forumid = 54
	AND thread.lastpost > 1582273778
	AND open <> 10
	AND sticky = 0
	
	 AND visible = 1 
	
	
	
	 AND thread.threadid NOT IN(SELECT threadid FROM dbtech_vbshop_threadban WHERE userid = 0)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1PRIMARYthreadrangeforumid,forumid_lastpost,lastpostforumid10 1Using index condition; Using where
2DEPENDENT SUBQUERY       Impossible WHERE noticed after reading const tables

Time Before: 0.08547 seconds
Time After: 0.08561 seconds
Time Taken: 0.00014 seconds

Memory Before: 6,739.625 KB
Memory After: 6,740.055 KB
Memory Used: 0.430 KB

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

Time Before: 0.08580 seconds
Time After: 0.08589 seconds
Time Taken: 0.00009 seconds

Memory Before: 6,739.188 KB
Memory After: 6,739.180 KB
Memory Used: -0.008 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 = 54
	AND sticky = 0
	
	 AND visible = 1 
	
	
	
	 AND thread.threadid NOT IN(SELECT threadid FROM dbtech_vbshop_threadban WHERE userid = 0)
ORDER BY sticky DESC, lastpost DESC
LIMIT 0, 20
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1PRIMARYthreadrefforumid,forumid_lastpostforumid6const,const,const1Using where
2DEPENDENT SUBQUERY       Impossible WHERE noticed after reading const tables

Time Before: 0.08629 seconds
Time After: 0.08649 seconds
Time Taken: 0.00020 seconds

Memory Before: 6,740.797 KB
Memory After: 6,740.477 KB
Memory Used: -0.320 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.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
	
	
	
	
	
	, vbshop_user.dbtech_vbshop_purchase 
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)
	
	
	
	LEFT JOIN user AS vbshop_user ON (vbshop_user.userid = thread.postuserid)

WHERE thread.threadid IN (0,94) 
ORDER BY thread.sticky DESC, lastpost DESC
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadrangePRIMARYPRIMARY4 2Using index condition; Using filesort
1SIMPLEusereq_refPRIMARYPRIMARY4driftrpc_forum.thread.lastposterid1 
1SIMPLEuserlisteq_refPRIMARY,relationid,useridPRIMARY9const,driftrpc_forum.user.userid,const1Using where
1SIMPLEposteq_refPRIMARYPRIMARY4driftrpc_forum.thread.firstpostid1 
1SIMPLEvbshop_usereq_refPRIMARYPRIMARY4driftrpc_forum.thread.postuserid1 

Time Before: 0.08707 seconds
Time After: 0.08749 seconds
Time Taken: 0.00041 seconds

Memory Before: 6,743.672 KB
Memory After: 6,742.852 KB
Memory Used: -0.820 KB

SQL Query
SELECT 
	userfield.*, usertextfield.*, user.*, UNIX_TIMESTAMP(passworddate) AS passworddate, user.languageid AS saved_languageid,
	IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
	 , dbtech_usertag_settings.*, user.userid
FROM user AS user
LEFT JOIN userfield AS userfield ON (user.userid = userfield.userid)
LEFT JOIN usertextfield AS usertextfield ON (usertextfield.userid = user.userid) 
 LEFT JOIN dbtech_usertag_settings AS dbtech_usertag_settings ON(dbtech_usertag_settings.userid = user.userid)
WHERE user.userid = 2 LIMIT 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEuserconstPRIMARYPRIMARY4const1 
1SIMPLEuserfieldconstPRIMARYPRIMARY4const1 
1SIMPLEusertextfieldconstPRIMARYPRIMARY4const1 
1SIMPLEdbtech_usertag_settingsconstPRIMARYPRIMARY4const1 

Time Before: 0.14504 seconds
Time After: 0.14542 seconds
Time Taken: 0.00038 seconds

Memory Before: 6,766.055 KB
Memory After: 6,766.234 KB
Memory Used: 0.180 KB

SQL Query
SELECT dbtech_vbshop_purchase FROM user WHERE userid = 2
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEuserconstPRIMARYPRIMARY4const1 

Time Before: 0.14583 seconds
Time After: 0.14594 seconds
Time Taken: 0.00010 seconds

Memory Before: 6,795.664 KB
Memory After: 6,795.969 KB
Memory Used: 0.305 KB

SQL Query
UPDATE session
SET lastactivity = 1582273778, location = 'forumdisplay.php?f=54', inforum = 54, badlocation = 0
WHERE sessionhash = '77240ef55ff4aab6d690100e7bb657cf'

Time Before: 0.15033 seconds
Time After: 0.15055 seconds
Time Taken: 0.00022 seconds

Memory Before: 7,075.203 KB
Memory After: 7,075.078 KB
Memory Used: -0.125 KB

Page generated in 0.14995908737183 seconds with 21 queries, spending 0.011441230773926 doing MySQL queries and 0.1385178565979 doing PHP things.
Shutdown Queries:
DISABLED