Including Functions.php

Time Before: 0.05104 seconds
Time After: 0.05127 seconds
Time Taken: 0.00023 seconds

Memory Before: 434.367 KB
Memory After: 444.422 KB
Memory Used: 10.055 KB

Connect to Database on Server: localhost

Time Before: 0.05136 seconds
Time After: 0.16566 seconds
Time Taken: 0.11429 seconds

Memory Before: 444.359 KB
Memory After: 445.273 KB
Memory Used: 0.914 KB

Datastore Setup
SQL Query
SELECT *
FROM datastore
WHERE title IN ('attachmentcache','cron','profilefield','loadcache','noticecache','smiliecache','bbcodecache','mailqueue','bookmarksitecache')
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEdatastore rangePRIMARYPRIMARY52 9100.00Using index condition

Time Before: 0.22881 seconds
Time After: 0.24510 seconds
Time Taken: 0.01628 seconds

Memory Before: 942.336 KB
Memory After: 943.172 KB
Memory Used: 0.836 KB

Time Before: 0.17549 seconds
Time After: 0.27101 seconds
Time Taken: 0.09552 seconds

Memory Before: 444.977 KB
Memory After: 1,134.188 KB
Memory Used: 689.211 KB

Session Handling
SQL Query
SELECT *
FROM session
WHERE userid = 0
	AND host = '18.116.89.123'
	AND idhash = '06f478ee3b9a13bd4cc82fd36a0c10e6'
LIMIT 1
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEsession ALL    241920.10Using where

Time Before: 0.30829 seconds
Time After: 0.31651 seconds
Time Taken: 0.00822 seconds

Memory Before: 1,151.609 KB
Memory After: 1,152.195 KB
Memory Used: 0.586 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,
			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.34069 seconds
Time After: 0.36266 seconds
Time Taken: 0.02197 seconds

Memory Before: 1,163.000 KB
Memory After: 1,162.898 KB
Memory Used: -0.102 KB

Time Before: 0.27129 seconds
Time After: 0.36288 seconds
Time Taken: 0.09159 seconds

Memory Before: 1,146.422 KB
Memory After: 1,216.688 KB
Memory Used: 70.266 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 = 67338
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEpost constPRIMARYPRIMARY4const1100.00 
1SIMPLEeditlog constPRIMARYPRIMARY4const00.00unique row not found

Time Before: 0.50238 seconds
Time After: 0.50990 seconds
Time Taken: 0.00751 seconds

Memory Before: 1,377.625 KB
Memory After: 1,378.117 KB
Memory Used: 0.492 KB

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



thread.*


FROM thread AS thread






WHERE thread.threadid = 5071
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEthread constPRIMARYPRIMARY4const1100.00 

Time Before: 0.52290 seconds
Time After: 0.52648 seconds
Time Taken: 0.00358 seconds

Memory Before: 1,386.313 KB
Memory After: 1,387.016 KB
Memory Used: 0.703 KB

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

Time Before: 0.55556 seconds
Time After: 0.56219 seconds
Time Taken: 0.00663 seconds

Memory Before: 1,399.422 KB
Memory After: 1,400.008 KB
Memory Used: 0.586 KB

SQL Query
SELECT title, template
FROM template
WHERE templateid IN (18408,18409,18411,18410,18493,15976,18525,18526,18528,18535,18534,14228,18708,18694,18695,18697,18696,18699,18701,18702,18703,18705,18707,18431,18433,18435,18437,14242,18737,18740,18741,18738,18736,18809,18810,18687,18686,18688,18692,18690,18837,18471,18470,18472,18473,10350,7917,14226,18406,18405,18407,18402,18401,18678,14225,7055,18631,18632,18898,18901,18910,18651,18652,18653,18654,18852,18915,18914,18916,18919,18925)
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEtemplate rangePRIMARYPRIMARY4 71100.00Using index condition

Time Before: 0.61796 seconds
Time After: 0.62807 seconds
Time Taken: 0.01011 seconds

Memory Before: 1,586.570 KB
Memory After: 1,588.344 KB
Memory Used: 1.773 KB

End call of global.php: 0.8198881149292
SQL Query
SELECT COUNT(*) AS posts
FROM post AS post
WHERE threadid = 5071 AND visible = 1

AND dateline <= 1042254443
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEpost refthreadidthreadid4const373.33Using where

Time Before: 0.95445 seconds
Time After: 0.96899 seconds
Time Taken: 0.01454 seconds

Memory Before: 1,883.078 KB
Memory After: 1,883.578 KB
Memory Used: 0.500 KB

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

WHERE post.threadid = 5071
	AND post.visible = 1
	
	
ORDER BY post.dateline 
LIMIT 20, 20
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEpost refthreadidthreadid4const3710.00Using index condition; Using where; Using filesort

Time Before: 1.00340 seconds
Time After: 1.00660 seconds
Time Taken: 0.00320 seconds

Memory Before: 1,889.234 KB
Memory After: 1,890.063 KB
Memory Used: 0.828 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 = 5 AND postparsed.languageid = 1)
LEFT JOIN sigparsed AS sigparsed ON(sigparsed.userid = user.userid AND sigparsed.styleid = 5 AND sigparsed.languageid = 1)
LEFT JOIN sigpic AS sigpic ON(sigpic.userid = post.userid)
	
WHERE post.postid IN (0,67129,67139,67208,67210,67226,67309,67311,67323,67338,67534,67545,67907,67916,69221,70526,70539,70660)
ORDER BY post.dateline
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEpostparsed systemPRIMARY   00.00const row not found
1SIMPLEpost rangePRIMARYPRIMARY4 18100.00Using index condition; Using filesort
1SIMPLEuser eq_refPRIMARYPRIMARY4psfantasy-forums.post.userid1100.00 
1SIMPLEuserfield eq_refPRIMARYPRIMARY4psfantasy-forums.user.userid1100.00 
1SIMPLEusertextfield eq_refPRIMARYPRIMARY4psfantasy-forums.user.userid1100.00 
1SIMPLEicon eq_refPRIMARYPRIMARY2psfantasy-forums.post.iconid1100.00 
1SIMPLEavatar eq_refPRIMARYPRIMARY2psfantasy-forums.user.avatarid1100.00Using where
1SIMPLEcustomavatar eq_refPRIMARYPRIMARY4psfantasy-forums.user.userid1100.00 
1SIMPLEeditlog eq_refPRIMARYPRIMARY4psfantasy-forums.post.postid1100.00 
1SIMPLEsigparsed eq_refPRIMARYPRIMARY8psfantasy-forums.user.userid,const,const1100.00 
1SIMPLEsigpic eq_refPRIMARYPRIMARY4psfantasy-forums.post.userid1100.00 

Time Before: 1.03434 seconds
Time After: 1.04991 seconds
Time Taken: 0.01557 seconds

Memory Before: 1,897.469 KB
Memory After: 1,915.492 KB
Memory Used: 18.023 KB

Time after parsing all posts: 3.5235559940338 Memory After: 2,118KB
SQL Query
SELECT thread.threadid, thread.forumid, thread.title, thread.prefixid, thread.taglist, postusername, postuserid,
	thread.lastpost, thread.replycount,
	forum.title AS forumtitle
	,post.pagetext AS preview
	
	
FROM thread AS thread
INNER JOIN forum AS forum ON (forum.forumid = thread.forumid)
LEFT JOIN post AS post ON (post.postid = thread.firstpostid)



WHERE thread.threadid IN (5805, 2405, 5638, 3014, 6015) AND thread.visible = 1
	AND forum.password = ''
	
	
ORDER BY lastpost DESC
idselect_typetablepartitionstypepossible_keyskeykey_lenrefrowsfilteredExtra
1SIMPLEthread rangePRIMARY,forumid,catorderPRIMARY4 510.00Using index condition; Using where; Using filesort
1SIMPLEforum eq_refPRIMARYPRIMARY2psfantasy-forums.thread.forumid110.00Using where
1SIMPLEpost eq_refPRIMARYPRIMARY4psfantasy-forums.thread.firstpostid1100.00 

Time Before: 3.62922 seconds
Time After: 3.65096 seconds
Time Taken: 0.02174 seconds

Memory Before: 2,122.492 KB
Memory After: 2,123.047 KB
Memory Used: 0.555 KB

SQL Query
UPDATE session
SET lastactivity = 1718602805, location = '/showthread.php?explain=1&p=67338', inforum = 18, inthread = 5071, incalendar = 0, badlocation = 0
WHERE sessionhash = 'a239921c3eda6c486939bbca6d03b45b'

Time Before: 3.82848 seconds
Time After: 3.86105 seconds
Time Taken: 0.03257 seconds

Memory Before: 2,948.070 KB
Memory After: 2,948.242 KB
Memory Used: 0.172 KB

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

Time Before: 3.86113 seconds
Time After: 3.86571 seconds
Time Taken: 0.00458 seconds

Memory Before: 2,942.344 KB
Memory After: 2,942.703 KB
Memory Used: 0.359 KB

Page generated in 3.7301969528198 seconds with 13 queries, spending 0.28081727027893 doing MySQL queries and 3.4493796825409 doing PHP things.
Shutdown Queries:
DISABLED