Including Functions.php

Time Before: 0.00091 seconds
Time After: 0.00111 seconds
Time Taken: 0.00019 seconds

Memory Before: 500.328 KB
Memory After: 523.117 KB
Memory Used: 22.789 KB

Connect to Database on Server: localhost

Time Before: 0.00118 seconds
Time After: 0.00145 seconds
Time Taken: 0.00027 seconds

Memory Before: 523.055 KB
Memory After: 523.969 KB
Memory Used: 0.914 KB

SQL Query
SET @@sql_mode = ''

Time Before: 0.00159 seconds
Time After: 0.00166 seconds
Time Taken: 0.00006 seconds

Memory Before: 524.523 KB
Memory After: 525.063 KB
Memory Used: 0.539 KB

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

Time Before: 0.00225 seconds
Time After: 0.00278 seconds
Time Taken: 0.00054 seconds

Memory Before: 527.836 KB
Memory After: 528.672 KB
Memory Used: 0.836 KB

Time Before: 0.00169 seconds
Time After: 0.00418 seconds
Time Taken: 0.00249 seconds

Memory Before: 524.313 KB
Memory After: 1,110.883 KB
Memory Used: 586.570 KB

Session Handling
SQL Query
SELECT *
FROM session
WHERE userid = 0
	AND host = '18.97.9.173'
	AND idhash = 'cafe753e855ff2939d0a288be7c544a4'
LIMIT 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEsessionrefguest_lookup,user_activityguest_lookup51const,const,const2Using where

Time Before: 0.00567 seconds
Time After: 0.00588 seconds
Time Taken: 0.00021 seconds

Memory Before: 1,604.828 KB
Memory After: 1,605.445 KB
Memory Used: 0.617 KB

SQL Query
SELECT languageid,
			phrasegroup_global AS phrasegroup_global,
			phrasegroup_inlinemod AS phrasegroup_inlinemod,
			phrasegroup_search AS phrasegroup_search,
			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.00651 seconds
Time After: 0.00698 seconds
Time Taken: 0.00047 seconds

Memory Before: 1,617.172 KB
Memory After: 1,617.141 KB
Memory Used: -0.031 KB

Time Before: 0.00520 seconds
Time After: 0.00707 seconds
Time Taken: 0.00187 seconds

Memory Before: 1,597.305 KB
Memory After: 1,673.414 KB
Memory Used: 76.109 KB

SQL Query
SELECT *
FROM datastore
WHERE title IN ('routes')
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEdatastoreconstPRIMARYPRIMARY50const1 

Time Before: 0.00741 seconds
Time After: 0.00754 seconds
Time Taken: 0.00014 seconds

Memory Before: 1,674.797 KB
Memory After: 1,675.375 KB
Memory Used: 0.578 KB

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

Time Before: 0.00972 seconds
Time After: 0.01017 seconds
Time Taken: 0.00045 seconds

Memory Before: 1,990.859 KB
Memory After: 1,991.453 KB
Memory Used: 0.594 KB

End call of global.php: 0.01131796836853
SQL Query
SELECT data, expires, locktime, serialized
FROM cache
WHERE cacheid = 'vb_types.types'
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEcacheconstPRIMARYPRIMARY66const1 

Time Before: 0.01285 seconds
Time After: 0.01301 seconds
Time Taken: 0.00016 seconds

Memory Before: 2,738.992 KB
Memory After: 2,739.531 KB
Memory Used: 0.539 KB

SQL Query
SELECT tagid, tagtext, canonicaltagid, dateline FROM tag WHERE tagtext = 'japanese restaurant'
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEtagconsttagtexttagtext102const1 

Time Before: 0.01408 seconds
Time After: 0.01421 seconds
Time Taken: 0.00013 seconds

Memory Before: 2,934.508 KB
Memory After: 2,935.063 KB
Memory Used: 0.555 KB

SQL Query
SELECT searchlog.*
FROM searchlog AS searchlog
WHERE searchhash = '727d92689c6fb4b50c8f5c3bc6a81cb2' AND
	sortby =  '' AND
	sortorder =  'asc' AND
	dateline > 1776888302 AND
	userid = 0 AND
	completed = 1
ORDER BY dateline DESC
LIMIT 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEsearchlogrefsearch,userfloodchecksearch56const,const,const,const1Using index condition; Using where; Using filesort

Time Before: 0.01483 seconds
Time After: 0.01509 seconds
Time Taken: 0.00026 seconds

Memory Before: 2,946.125 KB
Memory After: 2,946.453 KB
Memory Used: 0.328 KB

SQL Query
SELECT contenttypeid, tagcontent.contentid, tagcontent.contentid as threadid
FROM tagcontent as tagcontent
WHERE tagid = 3 
ORDER BY dateline DESC 
LIMIT 20000
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEtagcontentrefPRIMARYPRIMARY4const1Using where; Using filesort

Time Before: 0.01549 seconds
Time After: 0.01570 seconds
Time Taken: 0.00021 seconds

Memory Before: 2,952.992 KB
Memory After: 2,953.445 KB
Memory Used: 0.453 KB

SQL Query
REPLACE INTO searchlog
	(userid,ipaddress,searchhash,sortby,sortorder,searchtime,dateline,completed,criteria,results)
VALUES
	(0,'18.97.9.173','727d92689c6fb4b50c8f5c3bc6a81cb2','','asc',0,1776891902,0,'O:18:\"vB_Search_Criteria\":15:{s:28:\"\0vB_Search_Criteria\0keywords\";a:0:{}s:32:\"\0vB_Search_Criteria\0raw_keywords\";s:0:\"\";s:29:\"\0vB_Search_Criteria\0titleonly\";b:0;s:27:\"\0vB_Search_Criteria\0filters\";a:1:{s:3:\"tag\";a:1:{s:2:\"eq\";s:1:\"3\";}}s:24:\"\0vB_Search_Criteria\0sort\";a:2:{i:0;s:0:\"\";i:1;s:3:\"asc\";}s:27:\"\0vB_Search_Criteria\0grouped\";i:3;s:31:\"\0vB_Search_Criteria\0searchterms\";N;s:32:\"\0vB_Search_Criteria\0criteria_set\";b:1;s:35:\"\0vB_Search_Criteria\0advanced_typeid\";b:0;s:35:\"\0vB_Search_Criteria\0display_strings\";a:1:{s:3:\"tag\";s:38:\"Tag: japanese restaurant\";}s:32:\"\0vB_Search_Criteria\0common_words\";a:0:{}s:30:\"\0vB_Search_Criteria\0highlights\";a:0:{}s:33:\"\0vB_Search_Criteria\0search_string\";N;s:26:\"\0vB_Search_Criteria\0errors\";a:0:{}s:11:\"search_type\";s:3:\"tag\";}','')

Time Before: 0.01583 seconds
Time After: 0.01631 seconds
Time Taken: 0.00048 seconds

Memory Before: 2,958.992 KB
Memory After: 2,958.344 KB
Memory Used: -0.648 KB

SQL Query
UPDATE searchlog
SET results = 'a:4:{i:0;a:1:{i:0;a:3:{i:0;s:1:\"2\";i:1;s:2:\"10\";i:2;s:2:\"10\";}}i:1;i:-1;i:2;N;i:3;N;}'
WHERE searchlogid = 3740624

Time Before: 0.01646 seconds
Time After: 0.01728 seconds
Time Taken: 0.00083 seconds

Memory Before: 2,954.320 KB
Memory After: 2,954.570 KB
Memory Used: 0.250 KB

SQL Query
UPDATE searchlog
SET searchtime = 0.00219,
	completed = 1
WHERE searchlogid = 3740624

Time Before: 0.01746 seconds
Time After: 0.01774 seconds
Time Taken: 0.00028 seconds

Memory Before: 2,954.031 KB
Memory After: 2,954.336 KB
Memory Used: 0.305 KB

SQL Query
INSERT INTO tagsearch (tagid, dateline) 
				VALUES (3, 1776891902)

Time Before: 0.01788 seconds
Time After: 0.01805 seconds
Time Taken: 0.00017 seconds

Memory Before: 2,953.813 KB
Memory After: 2,954.156 KB
Memory Used: 0.344 KB

SQL Query
SELECT title, template
FROM template
WHERE templateid IN (0,1195,1022,0,1035,1036,1155,1157,1156,928,1145,1144,1124,1130,1032,1041,788,1254,1264,1205,1275,67,66,68,63,62,651,652,650,649,71,72,656,961,1257,907,911,908,909,910,1273,0,0,1236,1238,931,932,934,935,1158,1200,1199,1249,1201,758,757,761)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEtemplaterangePRIMARYPRIMARY4 54Using index condition

Time Before: 0.01957 seconds
Time After: 0.02031 seconds
Time Taken: 0.00074 seconds

Memory Before: 3,120.289 KB
Memory After: 3,121.828 KB
Memory Used: 1.539 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   172 
1SIMPLEusereq_refPRIMARYPRIMARY4business_business.moderator.userid1 

Time Before: 0.02664 seconds
Time After: 0.02741 seconds
Time Taken: 0.00077 seconds

Memory Before: 3,359.094 KB
Memory After: 3,359.820 KB
Memory Used: 0.727 KB

SQL Query
SELECT thread.*,post.pagetext AS preview,avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, user.avatarrevision,
			customavatar.dateline AS avatardateline, customavatar.width AS width, customavatar.height AS height,
			customavatar.height_thumb AS height_thumb, customavatar.width_thumb AS width_thumb, customavatar.filedata_thumb,
			first_user.avatarrevision AS first_avatarrevision, first_avatar.avatarpath AS first_avatarpath,
			NOT ISNULL(first_customavatar.userid) AS first_hascustomavatar, first_customavatar.dateline AS first_avatardateline,
			first_customavatar.width AS first_width, first_customavatar.height AS first_height, first_customavatar.height_thumb
			AS first_height_thumb, first_customavatar.width_thumb AS first_width_thumb, first_customavatar.filedata_thumb AS
			first_filedata_thumb,lastpost.lastposttime
FROM thread AS thread
	LEFT JOIN post AS post ON(post.postid = thread.firstpostid)
LEFT JOIN user AS user ON (user.userid = thread.lastposterid)
LEFT JOIN avatar AS avatar ON (avatar.avatarid = user.avatarid)
LEFT JOIN customavatar AS customavatar ON (customavatar.userid = user.userid)
LEFT JOIN user AS first_user ON (first_user.userid = thread.postuserid)
LEFT JOIN avatar AS first_avatar ON (first_avatar.avatarid = first_user.avatarid)
LEFT JOIN customavatar AS first_customavatar ON (first_customavatar.userid = first_user.userid)
LEFT JOIN (
	SELECT threadid, MAX(dateline) AS lastposttime
	FROM post
	WHERE threadid IN (10)
		AND userid = 0
	GROUP BY threadid
) AS lastpost ON (lastpost.threadid = thread.threadid)
WHERE thread.threadid IN (10)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1PRIMARYavatarsystemPRIMARY   0Const row not found
1PRIMARYcustomavatarsystemPRIMARY   0Const row not found
1PRIMARYfirst_avatarsystemPRIMARY   0Const row not found
1PRIMARYfirst_customavatarsystemPRIMARY   0Const row not found
1PRIMARYthreadconstPRIMARYPRIMARY4const1 
1PRIMARYpostconstPRIMARYPRIMARY4const1 
1PRIMARYuserconstPRIMARYPRIMARY4const1 
1PRIMARYfirst_userconstPRIMARYPRIMARY4const1 
1PRIMARYALL    2Using where
2DERIVEDpostrefthreadid,threadid_visible_dateline,userid,user_datethreadid_visible_dateline4const1Using where; Using index

Time Before: 0.02869 seconds
Time After: 0.02936 seconds
Time Taken: 0.00067 seconds

Memory Before: 3,385.375 KB
Memory After: 3,384.750 KB
Memory Used: -0.625 KB

SQL Query
UPDATE searchlog
SET results = 'a:4:{i:0;a:1:{i:0;a:3:{i:0;s:1:\"2\";i:1;s:2:\"10\";i:2;s:2:\"10\";}}i:1;i:0;i:2;a:1:{i:2;a:1:{i:0;s:2:\"10\";}}i:3;a:1:{i:2;a:0:{}}}'
WHERE searchlogid = 3740624

Time Before: 0.03167 seconds
Time After: 0.03202 seconds
Time Taken: 0.00035 seconds

Memory Before: 3,530.680 KB
Memory After: 3,530.891 KB
Memory Used: 0.211 KB

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

Time Before: 0.03443 seconds
Time After: 0.03470 seconds
Time Taken: 0.00027 seconds

Memory Before: 3,556.586 KB
Memory After: 3,560.047 KB
Memory Used: 3.461 KB

SQL Query
UPDATE session
SET lastactivity = 1776891902, location = '/tags.php?tag=japanese+restaurant&explain=1', badlocation = 0
WHERE sessionhash = 'dbc92962b735745cbbb97ecb3548c09b'

Time Before: 0.03786 seconds
Time After: 0.03800 seconds
Time Taken: 0.00014 seconds

Memory Before: 3,854.375 KB
Memory After: 3,854.594 KB
Memory Used: 0.219 KB

Page generated in 0.037030935287476 seconds with 20 queries, spending 0.0075960159301758 doing MySQL queries and 0.0294349193573 doing PHP things.
Shutdown Queries:
DISABLED