Including Functions.php

Time Before: 0.00073 seconds
Time After: 0.00092 seconds
Time Taken: 0.00019 seconds

Memory Before: 518.500 KB
Memory After: 541.070 KB
Memory Used: 22.570 KB

Connect to Database on Server: localhost

Time Before: 0.00099 seconds
Time After: 0.00138 seconds
Time Taken: 0.00039 seconds

Memory Before: 541.008 KB
Memory After: 542.000 KB
Memory Used: 0.992 KB

SQL Query
SET @@sql_mode = ''

Time Before: 0.00155 seconds
Time After: 0.00170 seconds
Time Taken: 0.00014 seconds

Memory Before: 542.555 KB
Memory After: 543.078 KB
Memory Used: 0.523 KB

Datastore Setup
SQL Query
SELECT *
FROM datastore
WHERE title IN ('smiliecache','bbcodecache','mailqueue','bookmarksitecache','options','bitfields','attachmentcache','forumcache','usergroupcache','stylecache','languagecache','products','pluginlist','cron','profilefield','loadcache','noticecache','activitystream')
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEdatastorerangePRIMARYPRIMARY50 18Using where

Time Before: 0.00268 seconds
Time After: 0.00305 seconds
Time Taken: 0.00036 seconds

Memory Before: 546.063 KB
Memory After: 546.898 KB
Memory Used: 0.836 KB

Time Before: 0.00174 seconds
Time After: 0.00542 seconds
Time Taken: 0.00367 seconds

Memory Before: 542.328 KB
Memory After: 1,552.453 KB
Memory Used: 1,010.125 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.00656 seconds
Time After: 0.00665 seconds
Time Taken: 0.00009 seconds

Memory Before: 2,031.445 KB
Memory After: 2,031.969 KB
Memory Used: 0.523 KB

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

Time Before: 0.00750 seconds
Time After: 0.00780 seconds
Time Taken: 0.00030 seconds

Memory Before: 2,050.555 KB
Memory After: 2,051.195 KB
Memory Used: 0.641 KB

SQL Query
SELECT languageid,
			phrasegroup_global AS phrasegroup_global,
			phrasegroup_posting AS phrasegroup_posting,
			phrasegroup_postbit AS phrasegroup_postbit,
			phrasegroup_showthread AS phrasegroup_showthread,
			phrasegroup_inlinemod AS phrasegroup_inlinemod,
			phrasegroup_reputationlevel AS phrasegroup_reputationlevel,
			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.00917 seconds
Time After: 0.00935 seconds
Time Taken: 0.00018 seconds

Memory Before: 2,063.031 KB
Memory After: 2,062.906 KB
Memory Used: -0.125 KB

Time Before: 0.00692 seconds
Time After: 0.00953 seconds
Time Taken: 0.00261 seconds

Memory Before: 2,043.336 KB
Memory After: 2,157.094 KB
Memory Used: 113.758 KB

SQL Query
SELECT *
FROM datastore
WHERE title IN ('routes','profilefield')
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEdatastorerangePRIMARYPRIMARY50 2Using where

Time Before: 0.00996 seconds
Time After: 0.01004 seconds
Time Taken: 0.00008 seconds

Memory Before: 2,158.508 KB
Memory After: 2,159.070 KB
Memory Used: 0.563 KB

SQL Query
SELECT IF(thread.visible = 2, 1, 0) AS isdeleted,



post.pagetext AS description,
thread.*


FROM thread AS thread




LEFT JOIN post AS post ON(post.postid = thread.firstpostid)


WHERE thread.threadid = 25
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadconstPRIMARYPRIMARY4const1 
1SIMPLEpostconstPRIMARYPRIMARY4const1 

Time Before: 0.01343 seconds
Time After: 0.01353 seconds
Time Taken: 0.00010 seconds

Memory Before: 2,582.961 KB
Memory After: 2,583.555 KB
Memory Used: 0.594 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.01504 seconds
Time After: 0.01523 seconds
Time Taken: 0.00019 seconds

Memory Before: 2,715.125 KB
Memory After: 2,715.719 KB
Memory Used: 0.594 KB

End call of global.php: 0.016606092453003
SQL Query
SELECT title, template
FROM template
WHERE templateid IN (431,430,1688,1691,1021,566,567,569,575,574,769,773,759,760,762,761,764,766,767,768,771,467,469,471,473,475,1312,827,828,829,826,896,747,746,748,753,751,920,528,529,695,522,521,524,525,538,536,1315,1313,1420,1051,0,0,429,423,422,1700,428,1694,1724,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,1359,1360,1361,1362,1364,1322,1323,1366,1370,1409,1459,1458,1460,1472)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEtemplaterangePRIMARYPRIMARY4 96Using where

Time Before: 0.01970 seconds
Time After: 0.02006 seconds
Time Taken: 0.00036 seconds

Memory Before: 3,747.102 KB
Memory After: 3,749.445 KB
Memory Used: 2.344 KB

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

Time Before: 0.02362 seconds
Time After: 0.02373 seconds
Time Taken: 0.00010 seconds

Memory Before: 3,982.047 KB
Memory After: 3,982.594 KB
Memory Used: 0.547 KB

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

Time Before: 0.02491 seconds
Time After: 0.02500 seconds
Time Taken: 0.00009 seconds

Memory Before: 3,993.164 KB
Memory After: 3,993.711 KB
Memory Used: 0.547 KB

SQL Query
SELECT  post.postid, post.attach
FROM post AS post

WHERE post.threadid = 25
	AND post.visible = 1
	
	
ORDER BY post.dateline 
LIMIT 520, 10
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEpostrefthreadid,threadid_visible_datelinethreadid_visible_dateline6const,const529Using where

Time Before: 0.04144 seconds
Time After: 0.04157 seconds
Time Taken: 0.00013 seconds

Memory Before: 3,922.148 KB
Memory After: 3,922.820 KB
Memory Used: 0.672 KB

SQL Query
SELECT data, expires, locktime, serialized
FROM cache
WHERE cacheid = 'vb_types.types'
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEcacheconstPRIMARYPRIMARY66const1 

Time Before: 0.04304 seconds
Time After: 0.04314 seconds
Time Taken: 0.00010 seconds

Memory Before: 4,027.219 KB
Memory After: 4,027.758 KB
Memory Used: 0.539 KB

SQL Query
SELECT
				fd.thumbnail_dateline, fd.filesize, IF(fd.thumbnail_filesize > 0, 1, 0) AS hasthumbnail, fd.thumbnail_filesize,
				a.dateline, a.state, a.attachmentid, a.counter, a.contentid, a.filename, a.userid, a.settings, a.displayorder,
				at.contenttypes
				 
			FROM attachment AS a
			INNER JOIN filedata AS fd ON (fd.filedataid = a.filedataid)
			LEFT JOIN attachmenttype AS at ON (at.extension = fd.extension)
			
			
				WHERE
					a.contentid IN (7533)
						AND
					a.contenttypeid = 1

ORDER BY a.contentid, a.displayorder
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEarefcontenttypeid,contentid,filedataidcontenttypeid8const,const1Using where; Using filesort
1SIMPLEfdeq_refPRIMARYPRIMARY4rolandviet_rlvn.a.filedataid1 
1SIMPLEateq_refPRIMARYPRIMARY20rolandviet_rlvn.fd.extension1Using where

Time Before: 0.04449 seconds
Time After: 0.04458 seconds
Time Taken: 0.00010 seconds

Memory Before: 4,075.930 KB
Memory After: 4,076.109 KB
Memory Used: 0.180 KB

SQL Query
SELECT
	post.*, post.username AS postusername, post.ipaddress AS ip, IF(post.visible = 2, 1, 0) AS isdeleted,
	user.*, userfield.*, usertextfield.*,
	icon.title as icontitle, icon.iconpath,
	avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight,
	
	
	
	editlog.userid AS edit_userid, editlog.username AS edit_username, editlog.dateline AS edit_dateline,
	editlog.reason AS edit_reason, editlog.hashistory,
	postparsed.pagetext_html, postparsed.hasimages,
	sigparsed.signatureparsed, sigparsed.hasimages AS sighasimages,
	sigpic.userid AS sigpic, sigpic.dateline AS sigpicdateline, sigpic.width AS sigpicwidth, sigpic.height AS sigpicheight,
	IF(user.displaygroupid=0, user.usergroupid, user.displaygroupid) AS displaygroupid, infractiongroupid
	
	
FROM post AS post
LEFT JOIN user AS user ON(user.userid = post.userid)
LEFT JOIN userfield AS userfield ON(userfield.userid = user.userid)
LEFT JOIN usertextfield AS usertextfield ON(usertextfield.userid = user.userid)
LEFT JOIN icon AS icon ON(icon.iconid = post.iconid)
LEFT JOIN avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN customavatar AS customavatar ON(customavatar.userid = user.userid)

	
LEFT JOIN editlog AS editlog ON(editlog.postid = post.postid)
LEFT JOIN postparsed AS postparsed ON(postparsed.postid = post.postid AND postparsed.styleid = 3 AND postparsed.languageid = 2)
LEFT JOIN sigparsed AS sigparsed ON(sigparsed.userid = user.userid AND sigparsed.styleid = 3 AND sigparsed.languageid = 2)
LEFT JOIN sigpic AS sigpic ON(sigpic.userid = post.userid)

	
WHERE post.postid IN (026,7533,7562,7564,7565,7569,7576,7581,7583,7584,7686)
ORDER BY post.dateline
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEpostrangePRIMARYPRIMARY4 11Using where; Using temporary; Using filesort
1SIMPLEusereq_refPRIMARYPRIMARY4rolandviet_rlvn.post.userid1 
1SIMPLEuserfieldeq_refPRIMARYPRIMARY4rolandviet_rlvn.user.userid1 
1SIMPLEusertextfieldeq_refPRIMARYPRIMARY4rolandviet_rlvn.user.userid1 
1SIMPLEiconeq_refPRIMARYPRIMARY2rolandviet_rlvn.post.iconid1 
1SIMPLEavatarALLPRIMARY   1Using where; Using join buffer (Block Nested Loop)
1SIMPLEcustomavatareq_refPRIMARYPRIMARY4rolandviet_rlvn.user.userid1 
1SIMPLEeditlogeq_refPRIMARYPRIMARY4rolandviet_rlvn.post.postid1 
1SIMPLEpostparsedALLPRIMARY   1Using where; Using join buffer (Block Nested Loop)
1SIMPLEsigparsedeq_refPRIMARYPRIMARY8rolandviet_rlvn.user.userid,const,const1 
1SIMPLEsigpicALLPRIMARY   3Using where; Using join buffer (Block Nested Loop)

Time Before: 0.04597 seconds
Time After: 0.04933 seconds
Time Taken: 0.00336 seconds

Memory Before: 4,083.211 KB
Memory After: 4,093.961 KB
Memory Used: 10.750 KB

SQL Query
SELECT * FROM post_thanks AS post_thanks INNER JOIN user AS user USING (userid) WHERE post_thanks.postid IN (26,7533,7562,7564,7565,7569,7576,7581,7583,7584,7686) ORDER BY post_thanks.username ASC
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEpost_thanksrangepostidpostid4 22Using index condition; Using filesort
1SIMPLEusereq_refPRIMARYPRIMARY4rolandviet_rlvn.post_thanks.userid1Using where

Time Before: 0.05449 seconds
Time After: 0.05786 seconds
Time Taken: 0.00337 seconds

Memory Before: 4,296.195 KB
Memory After: 4,389.328 KB
Memory Used: 93.133 KB

SQL Query
SELECT threadid, title, dateline
FROM thread 
WHERE forumid = 8 
ORDER BY threadid DESC 
LIMIT 10
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadindexforumid,forumid_lastpostPRIMARY4 61Using where

Time Before: 0.08102 seconds
Time After: 0.08113 seconds
Time Taken: 0.00010 seconds

Memory Before: 4,522.984 KB
Memory After: 4,523.789 KB
Memory Used: 0.805 KB

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

Time Before: 0.08178 seconds
Time After: 0.08187 seconds
Time Taken: 0.00008 seconds

Memory Before: 4,505.273 KB
Memory After: 4,505.820 KB
Memory Used: 0.547 KB

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

Time Before: 0.08371 seconds
Time After: 0.08380 seconds
Time Taken: 0.00010 seconds

Memory Before: 4,508.203 KB
Memory After: 4,508.758 KB
Memory Used: 0.555 KB

SQL Query
SELECT text, languageid, special
FROM phrase AS phrase
LEFT JOIN phrasetype USING (fieldname)
WHERE phrase.fieldname = 'error'
	AND varname = 'error_postcount_too_low_attachment' AND languageid IN (-1, 0, 2)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEphraserangename_lang_type,languageidname_lang_type276 3Using index condition
1SIMPLEphrasetypeconstPRIMARYPRIMARY20const1Using where

Time Before: 0.08492 seconds
Time After: 0.08500 seconds
Time Taken: 0.00009 seconds

Memory Before: 4,517.703 KB
Memory After: 4,518.125 KB
Memory Used: 0.422 KB

Time after parsing all posts: 0.15636610984802 Memory After: 4,472KB
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.15947 seconds
Time After: 0.15960 seconds
Time Taken: 0.00013 seconds

Memory Before: 4,507.313 KB
Memory After: 4,512.328 KB
Memory Used: 5.016 KB

SQL Query
UPDATE session
SET lastactivity = 1534778713, location = 'showthread.php?t=25&page=53', inforum = 8, inthread = 25, badlocation = 0
WHERE sessionhash = 'fae3dc2922f0159c48ec8f4d2eda6d69'

Time Before: 0.17011 seconds
Time After: 0.17115 seconds
Time Taken: 0.00103 seconds

Memory Before: 5,312.992 KB
Memory After: 5,313.203 KB
Memory Used: 0.211 KB

SQL Query
INSERT INTO threadviews (threadid)
VALUES (25)

Time Before: 0.17123 seconds
Time After: 0.18484 seconds
Time Taken: 0.01361 seconds

Memory Before: 5,306.719 KB
Memory After: 5,307.070 KB
Memory Used: 0.352 KB

Page generated in 0.16802000999451 seconds with 23 queries, spending 0.024587154388428 doing MySQL queries and 0.14343285560608 doing PHP things.
Shutdown Queries:
DISABLED