Including Functions.php

Time Before: 0.00062 seconds
Time After: 0.00070 seconds
Time Taken: 0.00007 seconds

Memory Before: 443.539 KB
Memory After: 510.492 KB
Memory Used: 66.953 KB

Connect to Database on Server: 127.0.0.1

Time Before: 0.00074 seconds
Time After: 0.00175 seconds
Time Taken: 0.00101 seconds

Memory Before: 510.469 KB
Memory After: 511.359 KB
Memory Used: 0.891 KB

SQL Query
SET @@sql_mode = ''

Time Before: 0.00232 seconds
Time After: 0.00252 seconds
Time Taken: 0.00021 seconds

Memory Before: 511.383 KB
Memory After: 511.438 KB
Memory Used: 0.055 KB

Datastore Setup
SQL Query
SELECT *
FROM datastore
WHERE title IN ('smiliecache','bbcodecache','mailqueue','bookmarksitecache','navdata','options','bitfields','attachmentcache','forumcache','usergroupcache','stylecache','languagecache','products','pluginlist','cron','profilefield','loadcache','noticecache','activitystream','routes')
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEdatastore rangePRIMARYPRIMARY52 20100.00Using index condition

Time Before: 0.00333 seconds
Time After: 0.00459 seconds
Time Taken: 0.00126 seconds

Memory Before: 513.328 KB
Memory After: 747.258 KB
Memory Used: 233.930 KB

Time Before: 0.00255 seconds
Time After: 0.01256 seconds
Time Taken: 0.01001 seconds

Memory Before: 511.203 KB
Memory After: 1,092.281 KB
Memory Used: 581.078 KB

Session Handling
SQL Query
SELECT *
FROM session
WHERE userid = 0
	AND host = '54.146.214.8'
	AND idhash = 'd0e81bc4ae1ac9cde88d9eab1b8b2284'
LIMIT 1
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEsession refguest_lookup,user_activityguest_lookup55const,const,const1100.00 

Time Before: 0.01658 seconds
Time After: 0.01696 seconds
Time Taken: 0.00039 seconds

Memory Before: 1,256.242 KB
Memory After: 1,272.586 KB
Memory Used: 16.344 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,
			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_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLElanguage systemPRIMARY   1100.00 

Time Before: 0.01813 seconds
Time After: 0.01890 seconds
Time Taken: 0.00076 seconds

Memory Before: 1,262.719 KB
Memory After: 1,347.297 KB
Memory Used: 84.578 KB

Time Before: 0.01334 seconds
Time After: 0.01902 seconds
Time Taken: 0.00568 seconds

Memory Before: 1,252.156 KB
Memory After: 1,335.086 KB
Memory Used: 82.930 KB

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


editlog.userid AS edit_userid, editlog.dateline AS edit_dateline, editlog.reason AS edit_reason, editlog.hashistory

FROM post AS post

LEFT JOIN editlog AS editlog ON (editlog.postid = post.postid)

WHERE post.postid = 1526525 LIMIT 1
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEpost constPRIMARYPRIMARY4const1100.00 
1SIMPLEeditlog constPRIMARYPRIMARY4const00.00unique row not found

Time Before: 0.02795 seconds
Time After: 0.02983 seconds
Time Taken: 0.00188 seconds

Memory Before: 1,532.883 KB
Memory After: 1,549.398 KB
Memory Used: 16.516 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 = 368365 LIMIT 1
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEthread constPRIMARYPRIMARY4const1100.00 
1SIMPLEpost constPRIMARYPRIMARY4const1100.00 

Time Before: 0.03044 seconds
Time After: 0.03076 seconds
Time Taken: 0.00032 seconds

Memory Before: 1,536.398 KB
Memory After: 1,552.977 KB
Memory Used: 16.578 KB

SQL Query
SELECT COUNT(*) AS count FROM user WHERE usergroupid = 4
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEuser refusergroupidusergroupid2const2100.00Using index

Time Before: 0.10646 seconds
Time After: 0.10863 seconds
Time Taken: 0.00217 seconds

Memory Before: 1,623.461 KB
Memory After: 1,639.648 KB
Memory Used: 16.188 KB

SQL Query
SELECT *
FROM style
WHERE (styleid = 19 AND userselect = 1)
	OR styleid = 19
ORDER BY styleid ASC
LIMIT 1
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEstyle constPRIMARYPRIMARY2const1100.00 

Time Before: 0.10942 seconds
Time After: 0.10978 seconds
Time Taken: 0.00036 seconds

Memory Before: 1,616.641 KB
Memory After: 1,745.281 KB
Memory Used: 128.641 KB

End call of global.php: 0.11715817451477
SQL Query
SELECT title, template
FROM template
WHERE templateid IN (14194,14193,14961,14963,24831,23979,23981,23985,23997,23995,21587,24393,24365,24367,24371,24369,24375,24379,24381,24383,24389,23779,23783,23787,23791,23795,16593,24501,24503,24505,24499,24639,24341,24339,24343,24353,24349,24687,23903,23905,24237,23891,23889,23895,23897,23923,23919,16601,25469,25468,24891,14189,14188,14190,14185,14184,14951,14953,14949,14947,24321,21591,16585,24221,24215,24217,16589,24929,0,0,24889,24811,24261,24263,24267,24269,24715,24953,24917,24817,24819,23915,23913,23921,21563,21565)
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEtemplate rangePRIMARYPRIMARY4 85100.00Using index condition

Time Before: 0.13195 seconds
Time After: 0.13282 seconds
Time Taken: 0.00088 seconds

Memory Before: 2,332.414 KB
Memory After: 2,536.977 KB
Memory Used: 204.563 KB

SQL Query
SELECT template
FROM template
WHERE templateid = 16587
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEtemplate constPRIMARYPRIMARY4const1100.00 

Time Before: 0.13446 seconds
Time After: 0.13560 seconds
Time Taken: 0.00114 seconds

Memory Before: 2,532.000 KB
Memory After: 2,548.281 KB
Memory Used: 16.281 KB

SQL Query
SELECT COUNT(*) AS posts
FROM post AS post
WHERE threadid = 368365 AND visible = 1

AND dateline <= 1518138728
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEpost rangethreadid,dateline,threadid_visible_datelinethreadid_visible_dateline10 4100.00Using where; Using index

Time Before: 0.13863 seconds
Time After: 0.13896 seconds
Time Taken: 0.00032 seconds

Memory Before: 2,535.211 KB
Memory After: 2,551.336 KB
Memory Used: 16.125 KB

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

WHERE post.threadid = 368365
	AND post.visible = 1
	
	
ORDER BY post.dateline 
LIMIT 0, 15
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEpost refthreadid,threadid_visible_datelinethreadid_visible_dateline6const,const410.00Using index condition

Time Before: 0.13963 seconds
Time After: 0.14052 seconds
Time Taken: 0.00089 seconds

Memory Before: 2,541.672 KB
Memory After: 2,558.008 KB
Memory Used: 16.336 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
	, '' AS field5, '' AS field6, '' AS field7, '' AS field18, '' AS field8, '' AS field9, '' AS field10, '' AS field11, '' AS field12, '' AS field13, '' AS field14, '' AS field15, '' AS field16, '' AS field17
	
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 = 19 AND postparsed.languageid = 1)
LEFT JOIN sigparsed AS sigparsed ON(sigparsed.userid = user.userid AND sigparsed.styleid = 19 AND sigparsed.languageid = 1)
LEFT JOIN sigpic AS sigpic ON(sigpic.userid = post.userid)

	
WHERE post.postid IN (01526087,1526467,1526468,1526525)
ORDER BY post.dateline
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEavatar systemPRIMARY   00.00const row not found
1SIMPLEpostparsed systemPRIMARY   00.00const row not found
1SIMPLEpost rangePRIMARYPRIMARY4 4100.00Using where; Using filesort
1SIMPLEuser eq_refPRIMARYPRIMARY4webdev.post.userid1100.00 
1SIMPLEuserfield eq_refPRIMARYPRIMARY4webdev.user.userid1100.00 
1SIMPLEusertextfield eq_refPRIMARYPRIMARY4webdev.user.userid1100.00 
1SIMPLEicon eq_refPRIMARYPRIMARY2webdev.post.iconid1100.00 
1SIMPLEcustomavatar eq_refPRIMARYPRIMARY4webdev.user.userid1100.00 
1SIMPLEeditlog eq_refPRIMARYPRIMARY4webdev.post.postid1100.00 
1SIMPLEsigparsed eq_refPRIMARYPRIMARY8webdev.user.userid,const,const1100.00 
1SIMPLEsigpic eq_refPRIMARYPRIMARY4webdev.post.userid1100.00 

Time Before: 0.14177 seconds
Time After: 0.14286 seconds
Time Taken: 0.00109 seconds

Memory Before: 2,551.430 KB
Memory After: 2,577.859 KB
Memory Used: 26.430 KB

SQL Query
SELECT data, expires, locktime, serialized
FROM cache
WHERE cacheid = 'vb_types.types'
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEcache constPRIMARYPRIMARY66const1100.00 

Time Before: 0.14800 seconds
Time After: 0.14817 seconds
Time Taken: 0.00017 seconds

Memory Before: 2,710.039 KB
Memory After: 2,726.492 KB
Memory Used: 16.453 KB

Time after parsing all posts: 0.16103410720825 Memory After: 2,720KB
SQL Query
SELECT user.username, user.usergroupid, user.membergroupids,
	session.userid, session.inthread, session.lastactivity, session.badlocation,
	IF(user.displaygroupid = 0, user.usergroupid, user.displaygroupid) AS displaygroupid, infractiongroupid,
	IF(user.options & 512, 1, 0) AS invisible
FROM session AS session
LEFT JOIN user AS user ON(user.userid = session.userid)
WHERE session.lastactivity > 1518906017
ORDER BY  lastactivity DESC
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEsession ALLlast_activity   53175.89Using where; Using filesort
1SIMPLEuser eq_refPRIMARYPRIMARY4webdev.session.userid1100.00 

Time Before: 0.16393 seconds
Time After: 0.16600 seconds
Time Taken: 0.00207 seconds

Memory Before: 2,721.773 KB
Memory After: 2,824.375 KB
Memory Used: 102.602 KB

SQL Query
INSERT IGNORE INTO session
	(sessionhash, userid, host, idhash, lastactivity, location, styleid, languageid, loggedin, inforum, inthread, incalendar, badlocation, useragent, bypass, profileupdate, apiclientid, apiaccesstoken)
VALUES
	('a9668d7c6b6ce93c048c713c8aefd89a', 0, '54.146.214.8', 'd0e81bc4ae1ac9cde88d9eab1b8b2284', 1518907817, 'showthread.php?t=368365', 0, 0, 0, 10, 368365, 0, 0, 'CCBot/2.0 (http://commoncrawl.org/faq/)', 0, 0, 0, '')

Time Before: 0.17224 seconds
Time After: 0.17412 seconds
Time Taken: 0.00189 seconds

Memory Before: 2,923.617 KB
Memory After: 2,923.242 KB
Memory Used: -0.375 KB

SQL Query
UPDATE thread
SET views = views + 1
WHERE threadid = 368365

Time Before: 0.17417 seconds
Time After: 0.17771 seconds
Time Taken: 0.00354 seconds

Memory Before: 2,920.523 KB
Memory After: 2,920.648 KB
Memory Used: 0.125 KB

Page generated in 0.17076015472412 seconds with 17 queries, spending 0.020330190658569 doing MySQL queries and 0.15042996406555 doing PHP things.
Shutdown Queries:
DISABLED