Including Functions.php

Time Before: 0.00232 seconds
Time After: 0.00484 seconds
Time Taken: 0.00253 seconds

Memory Before: 454.828 KB
Memory After: 464.023 KB
Memory Used: 9.195 KB

Connect to Database on Server: localhost

Time Before: 0.00489 seconds
Time After: 0.00589 seconds
Time Taken: 0.00100 seconds

Memory Before: 464.031 KB
Memory After: 464.930 KB
Memory Used: 0.898 KB

Datastore Setup
SQL Query
SELECT *
FROM datastore
WHERE title IN ('','options','bitfields','attachmentcache','forumcache','usergroupcache','stylecache','languagecache','products','pluginlist','cron','profilefield','loadcache','noticecache','iconcache','mailqueue','prefixcache')
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEdatastorerangePRIMARYPRIMARY50 17Using index condition

Time Before: 0.00623 seconds
Time After: 0.00659 seconds
Time Taken: 0.00037 seconds

Memory Before: 468.695 KB
Memory After: 469.164 KB
Memory Used: 0.469 KB

Time Before: 0.00595 seconds
Time After: 0.00805 seconds
Time Taken: 0.00210 seconds

Memory Before: 464.727 KB
Memory After: 1,631.953 KB
Memory Used: 1,167.227 KB

Session Handling
SQL Query
SELECT *
FROM session
WHERE userid = 0
	AND host = '54.162.118.107'
	AND idhash = '7002c83ecc2540a05f5b2d331e15f96b'
LIMIT 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEsessionALL    488Using where

Time Before: 0.00862 seconds
Time After: 0.00870 seconds
Time Taken: 0.00008 seconds

Memory Before: 1,651.609 KB
Memory After: 1,652.008 KB
Memory Used: 0.398 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,
			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.00900 seconds
Time After: 0.00914 seconds
Time Taken: 0.00014 seconds

Memory Before: 1,663.195 KB
Memory After: 1,663.000 KB
Memory Used: -0.195 KB

Time Before: 0.00842 seconds
Time After: 0.00921 seconds
Time Taken: 0.00079 seconds

Memory Before: 1,646.734 KB
Memory After: 1,730.156 KB
Memory Used: 83.422 KB

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

Time Before: 0.01067 seconds
Time After: 0.01075 seconds
Time Taken: 0.00009 seconds

Memory Before: 1,906.039 KB
Memory After: 1,906.469 KB
Memory Used: 0.430 KB

SQL Query
SELECT title, template
FROM template
WHERE templateid IN (64,153,509,511,510,164,161,163,740,162,168,170,154,167,155,156,169,171,166,560,570,499,745,744,564,67,66,68,63,62,339,741,291,292,293,559,562,571,312,313,314,315,513,576,575,577,580,677,678,679,680,681,682,683,684,685,686,687,689,688,690,691)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEtemplaterangePRIMARYPRIMARY4 62Using index condition

Time Before: 0.01129 seconds
Time After: 0.01165 seconds
Time Taken: 0.00037 seconds

Memory Before: 2,093.219 KB
Memory After: 2,093.461 KB
Memory Used: 0.242 KB

SQL Query
SELECT userip
FROM cybvilxh_guests AS cybvilxh_guests
WHERE userip = '54.162.118.107'
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEcybvilxh_guestsALL    597Using where

Time Before: 0.01470 seconds
Time After: 0.01484 seconds
Time Taken: 0.00014 seconds

Memory Before: 2,711.758 KB
Memory After: 2,712.211 KB
Memory Used: 0.453 KB

SQL Query
UPDATE cybvilxh_guests
SET dateline = '1540212466'
WHERE userip = '54.162.118.107'

Time Before: 0.01488 seconds
Time After: 0.01589 seconds
Time Taken: 0.00100 seconds

Memory Before: 2,712.430 KB
Memory After: 2,712.766 KB
Memory Used: 0.336 KB

SQL Query
DELETE FROM cybvilxh_guests WHERE dateline < '1540126066'

Time Before: 0.01592 seconds
Time After: 0.01602 seconds
Time Taken: 0.00011 seconds

Memory Before: 2,711.625 KB
Memory After: 2,712.008 KB
Memory Used: 0.383 KB

End call of global.php: 0.016560077667236
SQL Query
SELECT forum.forumid, lastpost, lastposter, lastthread, lastthreadid, lasticonid, threadcount, replycount, lastpostid, lastprefixid
	
FROM forum AS forum
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEforumALL    82 

Time Before: 0.01773 seconds
Time After: 0.01788 seconds
Time Taken: 0.00015 seconds

Memory Before: 2,376.625 KB
Memory After: 2,377.008 KB
Memory Used: 0.383 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   2 
1SIMPLEusereq_refPRIMARYPRIMARY4help_lol2.moderator.userid1 

Time Before: 0.01868 seconds
Time After: 0.01880 seconds
Time Taken: 0.00012 seconds

Memory Before: 2,543.469 KB
Memory After: 2,543.813 KB
Memory Used: 0.344 KB

SQL Query
SELECT user.username, (user.options & 512) AS invisible, user.usergroupid,
	session.userid, session.inforum, session.lastactivity, session.badlocation,
	IF(user.displaygroupid=0, user.usergroupid, user.displaygroupid) AS displaygroupid, infractiongroupid
FROM session AS session
LEFT JOIN user AS user ON(user.userid = session.userid)
WHERE session.lastactivity > 1540211966
ORDER BY username ASC, lastactivity DESC
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEsessionALL    488Using where; Using temporary; Using filesort
1SIMPLEusereq_refPRIMARYPRIMARY4help_lol2.session.userid1 

Time Before: 0.01972 seconds
Time After: 0.01993 seconds
Time Taken: 0.00021 seconds

Memory Before: 2,562.711 KB
Memory After: 2,562.844 KB
Memory Used: 0.133 KB

SQL Query
SELECT
	announcement.announcementid, startdate, title, announcement.views,
	user.username, user.userid, user.usertitle, user.customtitle, user.usergroupid,
	IF(user.displaygroupid=0, user.usergroupid, user.displaygroupid) AS displaygroupid, infractiongroupid
	
	
FROM announcement AS announcement

LEFT JOIN user AS user ON(user.userid = announcement.userid)

WHERE startdate <= 1540212466
	AND enddate >= 1540212466
	AND forumid IN (99,39,-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.02187 seconds
Time After: 0.02197 seconds
Time Taken: 0.00010 seconds

Memory Before: 2,650.859 KB
Memory After: 2,650.875 KB
Memory Used: 0.016 KB

SQL Query
SELECT COUNT(*) AS threads, SUM(IF(thread.lastpost > 1540212466 AND open <> 10, 1, 0)) AS newthread

FROM thread AS thread


WHERE forumid = 99
	AND sticky = 0
	
	 AND visible = 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadrefforumidforumid6const,const,const208 

Time Before: 0.02222 seconds
Time After: 0.02235 seconds
Time Taken: 0.00013 seconds

Memory Before: 2,657.289 KB
Memory After: 2,657.625 KB
Memory Used: 0.336 KB

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

Time Before: 0.02255 seconds
Time After: 0.02261 seconds
Time Taken: 0.00006 seconds

Memory Before: 2,657.938 KB
Memory After: 2,658.344 KB
Memory Used: 0.406 KB

SQL Query
SELECT  thread.threadid,
	thread.lastpost, thread.lastposter, thread.lastpostid, thread.replycount, IF(thread.views<=thread.replycount, thread.replycount+1, thread.views) AS views
	
FROM thread AS thread


WHERE forumid = 99
	AND sticky = 0
	
	 AND visible = 1 
	
	
	
	
ORDER BY sticky DESC, lastpost DESC
LIMIT 0, 20
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadrefforumidforumid6const,const,const208Using where

Time Before: 0.02282 seconds
Time After: 0.02295 seconds
Time Taken: 0.00012 seconds

Memory Before: 2,660.047 KB
Memory After: 2,660.234 KB
Memory Used: 0.188 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, pollid, open, postusername, postuserid, thread.iconid AS threadiconid,
	thread.dateline, notes, thread.visible, sticky, votetotal, thread.attach, thread.lastpost, thread.lastposter, thread.lastpostid, thread.replycount, IF(thread.views<=thread.replycount, thread.replycount+1, thread.views) AS views,
	thread.prefixid, thread.taglist, hiddencount, deletedcount
	
	
	
	
	
FROM thread AS thread
	
	
	
	LEFT JOIN post AS post ON(post.postid = thread.firstpostid)
	
	
	
WHERE thread.threadid IN (0,10151,11637,11183,10535,10935,10859,9641,11636,11587,11546,11431,11238,11039,11001,10909,10534,10407,10351,10226,10081,9638) 
ORDER BY sticky DESC, lastpost DESC
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadrangePRIMARYPRIMARY4 22Using index condition; Using filesort
1SIMPLEposteq_refPRIMARYPRIMARY4help_lol2.thread.firstpostid1 

Time Before: 0.02323 seconds
Time After: 0.02368 seconds
Time Taken: 0.00045 seconds

Memory Before: 2,662.273 KB
Memory After: 2,661.930 KB
Memory Used: -0.344 KB

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

Time Before: 0.03769 seconds
Time After: 0.03773 seconds
Time Taken: 0.00005 seconds

Memory Before: 2,716.836 KB
Memory After: 2,717.320 KB
Memory Used: 0.484 KB

SQL Query
UPDATE session
SET lastactivity = 1540212466, location = '/vb/forumdisplay.php?f=99&explain=1', inforum = 99, inthread = 0, incalendar = 0, badlocation = 0
WHERE sessionhash = 'c18e50efa25841beff6096ea40789b6d'

Time Before: 0.04004 seconds
Time After: 0.04013 seconds
Time Taken: 0.00009 seconds

Memory Before: 3,208.281 KB
Memory After: 3,208.484 KB
Memory Used: 0.203 KB

Page generated in 0.038727998733521 seconds with 21 queries, spending 0.0048949718475342 doing MySQL queries and 0.033833026885986 doing PHP things.
Shutdown Queries:
DISABLED