Including Functions.php

Time Before: 0.00018 seconds
Time After: 0.00020 seconds
Time Taken: 0.00002 seconds

Memory Before: 431.273 KB
Memory After: 433.109 KB
Memory Used: 1.836 KB

Connect to Database on Server: localhost

Time Before: 0.00022 seconds
Time After: 0.00050 seconds
Time Taken: 0.00028 seconds

Memory Before: 433.094 KB
Memory After: 433.984 KB
Memory Used: 0.891 KB

SQL Query
SET @@sql_mode = ''

Time Before: 0.00059 seconds
Time After: 0.00065 seconds
Time Taken: 0.00007 seconds

Memory Before: 434.031 KB
Memory After: 434.086 KB
Memory Used: 0.055 KB

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

Time Before: 0.00103 seconds
Time After: 0.00128 seconds
Time Taken: 0.00026 seconds

Memory Before: 435.625 KB
Memory After: 652.805 KB
Memory Used: 217.180 KB

Time Before: 0.00067 seconds
Time After: 0.00642 seconds
Time Taken: 0.00575 seconds

Memory Before: 433.875 KB
Memory After: 969.539 KB
Memory Used: 535.664 KB

SQL Query
SELECT *
FROM datastore
WHERE title IN ('modstats_coder','modstats_designer','modstats_motm','modtitle_coder','modtitle_designer')
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEdatastorerangePRIMARYPRIMARY200 5Using where

Time Before: 0.00664 seconds
Time After: 0.00692 seconds
Time Taken: 0.00027 seconds

Memory Before: 971.273 KB
Memory After: 1,355.594 KB
Memory Used: 384.320 KB

Session Handling
SQL Query
SELECT *
FROM session
WHERE userid = 0
	AND host = '18.118.1.100'
	AND idhash = 'e61ec66646791f8553e119945ce39d8e'
LIMIT 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEsessionALL    995Using where

Time Before: 0.00724 seconds
Time After: 0.00730 seconds
Time Taken: 0.00006 seconds

Memory Before: 1,161.781 KB
Memory After: 1,178.227 KB
Memory Used: 16.445 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,
			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.00768 seconds
Time After: 0.00779 seconds
Time Taken: 0.00011 seconds

Memory Before: 1,167.766 KB
Memory After: 1,312.711 KB
Memory Used: 144.945 KB

Time Before: 0.00699 seconds
Time After: 0.00786 seconds
Time Taken: 0.00087 seconds

Memory Before: 1,159.336 KB
Memory After: 1,237.820 KB
Memory Used: 78.484 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 = 2541397
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEpostconstPRIMARYPRIMARY4const1 
1SIMPLEeditlogconstPRIMARYPRIMARY4const0Unique row not found

Time Before: 0.00962 seconds
Time After: 0.00990 seconds
Time Taken: 0.00029 seconds

Memory Before: 1,368.242 KB
Memory After: 1,384.563 KB
Memory Used: 16.320 KB

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



thread.*


FROM thread AS thread






WHERE thread.threadid = 315657
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEthreadconstPRIMARYPRIMARY4const1 

Time Before: 0.01012 seconds
Time After: 0.01031 seconds
Time Taken: 0.00019 seconds

Memory Before: 1,371.555 KB
Memory After: 1,388.125 KB
Memory Used: 16.570 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.01057 seconds
Time After: 0.01066 seconds
Time Taken: 0.00009 seconds

Memory Before: 1,376.578 KB
Memory After: 1,473.086 KB
Memory Used: 96.508 KB

SQL Query
SELECT title, template
FROM template
WHERE templateid IN (69,70,72,71,154,560,186,187,189,196,195,607,369,355,356,358,357,360,362,363,364,366,368,92,94,96,98,602,398,401,402,399,397,470,471,348,347,349,353,351,498,132,131,133,134,641,644,624,67,66,68,63,62,339,645,291,292,293,559,562,571,312,313,314,315,513,576,575,577,580,599,600,595,609,596,131,132,133,134,149,584,585,587,588,586,583,581,582,594,589,590,593,592,591,366,394,395,392,598,615,619,610,611,612,613,616,618)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEtemplaterangePRIMARYPRIMARY4 102Using where

Time Before: 0.01172 seconds
Time After: 0.01209 seconds
Time Taken: 0.00037 seconds

Memory Before: 1,529.602 KB
Memory After: 1,843.156 KB
Memory Used: 313.555 KB

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

AND dateline <= 1427223660
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEpostrefthreadidthreadid4const34Using where

Time Before: 0.01384 seconds
Time After: 0.01412 seconds
Time Taken: 0.00027 seconds

Memory Before: 1,892.914 KB
Memory After: 1,909.094 KB
Memory Used: 16.180 KB

SQL Query
SELECT post.postid, post.visible, post.userid
FROM post AS post
WHERE post.threadid = 315657
	AND post.visible IN (1
	
	
	)
ORDER BY post.dateline
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEpostrefthreadidthreadid4const34Using where; Using filesort

Time Before: 0.01447 seconds
Time After: 0.01474 seconds
Time Taken: 0.00027 seconds

Memory Before: 1,897.773 KB
Memory After: 1,915.859 KB
Memory Used: 18.086 KB

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

WHERE post.threadid = 315657
	AND post.visible = 1
	
	
ORDER BY post.dateline 
LIMIT 10, 10
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEpostrefthreadidthreadid4const34Using where; Using filesort

Time Before: 0.01495 seconds
Time After: 0.01522 seconds
Time Taken: 0.00027 seconds

Memory Before: 1,895.813 KB
Memory After: 1,912.367 KB
Memory Used: 16.555 KB

SQL Query
SELECT dateline, thumbnail_dateline, filename, filesize, visible, attachmentid, counter,
	postid, IF(thumbnail_filesize > 0, 1, 0) AS hasthumbnail, thumbnail_filesize,
	attachmenttype.thumbnail AS build_thumbnail, attachmenttype.newwindow
FROM attachment
LEFT JOIN attachmenttype AS attachmenttype USING (extension)
WHERE postid IN (0,2524371,2538272,2538350,2538602,2538654,2541385,2541397,2541495,2541530,2550760,2550764)
ORDER BY attachmentid
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEattachmentrangepostidpostid4 12Using index condition; Using filesort
1SIMPLEattachmenttypeeq_refPRIMARYPRIMARY80vbsupport_vborg.attachment.extension1Using where

Time Before: 0.01553 seconds
Time After: 0.01597 seconds
Time Taken: 0.00043 seconds

Memory Before: 1,897.258 KB
Memory After: 1,913.141 KB
Memory Used: 15.883 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
	
	,modification.last_update,modification.author,modification.mod_productid,modification.mod_supported,modification.mod_dbchanges,modification.mod_usesplugins,modification.mod_edtemplates,modification.mod_autemplates,modification.mod_reuseable,modification.mod_codechange,modification.mod_additional,modification.mod_translation,modification.mod_licence,modification.mod_verified,modification.mod_external,modification.mod_betastage,modification.mod_version,modification.mod_coauthors,modification.mod_installcount,modification.mod_vbversion,modification.motm,licence.title AS licence_used,licence.licence
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 = 2 AND postparsed.languageid = 1)
LEFT JOIN sigparsed AS sigparsed ON(sigparsed.userid = user.userid AND sigparsed.styleid = 2 AND sigparsed.languageid = 1)
LEFT JOIN sigpic AS sigpic ON(sigpic.userid = post.userid)
	LEFT JOIN modsys_settings AS modification ON(modification.threadid = 315657) LEFT JOIN modsys_licences AS licence ON(licence.modsys_licencesid = modification.mod_licence) 
WHERE post.postid IN (0,2524371,2538272,2538350,2538602,2538654,2541385,2541397,2541495,2541530,2550760,2550764)
ORDER BY post.dateline
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEpostrangePRIMARYPRIMARY4 12Using index condition; Using temporary; Using filesort
1SIMPLEusereq_refPRIMARYPRIMARY4vbsupport_vborg.post.userid1 
1SIMPLEuserfieldeq_refPRIMARYPRIMARY4vbsupport_vborg.user.userid1Using where
1SIMPLEusertextfieldeq_refPRIMARYPRIMARY4vbsupport_vborg.user.userid1Using where
1SIMPLEiconeq_refPRIMARYPRIMARY2vbsupport_vborg.post.iconid1 
1SIMPLEavatareq_refPRIMARYPRIMARY2vbsupport_vborg.user.avatarid1Using where
1SIMPLEcustomavatareq_refPRIMARYPRIMARY4vbsupport_vborg.user.userid1Using where
1SIMPLEeditlogeq_refPRIMARYPRIMARY4vbsupport_vborg.post.postid1 
1SIMPLEpostparsedeq_refPRIMARYPRIMARY8vbsupport_vborg.post.postid,const,const1 
1SIMPLEsigparsedeq_refPRIMARYPRIMARY8vbsupport_vborg.user.userid,const,const1Using where
1SIMPLEsigpiceq_refPRIMARYPRIMARY4vbsupport_vborg.post.userid1 
1SIMPLEmodificationALL    19206Using where; Using join buffer (flat, BNL join)
1SIMPLElicenceeq_refPRIMARYPRIMARY4vbsupport_vborg.modification.mod_licence1Using where

Time Before: 0.01684 seconds
Time After: 0.03706 seconds
Time Taken: 0.02022 seconds

Memory Before: 1,925.508 KB
Memory After: 2,023.445 KB
Memory Used: 97.938 KB

SQL Query
SELECT mod_installed FROM modsys_user_notification WHERE userid=210665 AND threadid=315657
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEmodsys_user_notificationALL    7Using where

Time Before: 0.03768 seconds
Time After: 0.03799 seconds
Time Taken: 0.00031 seconds

Memory Before: 2,076.773 KB
Memory After: 2,092.953 KB
Memory Used: 16.180 KB

SQL Query
SELECT * FROM modsys_user_notification WHERE userid=0 AND threadid=315657
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEmodsys_user_notificationALL    7Using where

Time Before: 0.03820 seconds
Time After: 0.03840 seconds
Time Taken: 0.00020 seconds

Memory Before: 2,076.758 KB
Memory After: 2,093.070 KB
Memory Used: 16.313 KB

SQL Query
SELECT manual_notify FROM modsys_user_notification WHERE threadid=315657 AND manual_notify='1'
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEmodsys_user_notificationALL    7Using where

Time Before: 0.03858 seconds
Time After: 0.03893 seconds
Time Taken: 0.00036 seconds

Memory Before: 2,082.398 KB
Memory After: 2,098.453 KB
Memory Used: 16.055 KB

SQL Query
SELECT * FROM post_thanks AS post_thanks INNER JOIN user AS user USING (userid) WHERE post_thanks.postid IN (0,0,2524371,2538272,2538350,2538602,2538654,2541385,2541397,2541495,2541530,2550760,2550764) ORDER BY post_thanks.username ASC
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEpost_thanksrangepostidpostid4 12Using index condition; Using filesort
1SIMPLEusereq_refPRIMARYPRIMARY4vbsupport_vborg.post_thanks.userid1Using where

Time Before: 0.03961 seconds
Time After: 0.04002 seconds
Time Taken: 0.00041 seconds

Memory Before: 2,090.563 KB
Memory After: 2,125.281 KB
Memory Used: 34.719 KB

SQL Query
SELECT mod_installed FROM modsys_user_notification WHERE userid=490809 AND threadid=315657
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEmodsys_user_notificationALL    7Using where

Time Before: 0.04258 seconds
Time After: 0.04272 seconds
Time Taken: 0.00014 seconds

Memory Before: 2,147.844 KB
Memory After: 2,164.023 KB
Memory Used: 16.180 KB

SQL Query
SELECT mod_installed FROM modsys_user_notification WHERE userid=210665 AND threadid=315657
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEmodsys_user_notificationALL    7Using where

Time Before: 0.04424 seconds
Time After: 0.04429 seconds
Time Taken: 0.00005 seconds

Memory Before: 2,153.758 KB
Memory After: 2,169.938 KB
Memory Used: 16.180 KB

SQL Query
SELECT mod_installed FROM modsys_user_notification WHERE userid=4345 AND threadid=315657
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEmodsys_user_notificationALL    7Using where

Time Before: 0.04572 seconds
Time After: 0.04589 seconds
Time Taken: 0.00017 seconds

Memory Before: 2,163.758 KB
Memory After: 2,179.938 KB
Memory Used: 16.180 KB

SQL Query
SELECT mod_installed FROM modsys_user_notification WHERE userid=210665 AND threadid=315657
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEmodsys_user_notificationALL    7Using where

Time Before: 0.04725 seconds
Time After: 0.04730 seconds
Time Taken: 0.00005 seconds

Memory Before: 2,173.203 KB
Memory After: 2,189.383 KB
Memory Used: 16.180 KB

SQL Query
SELECT mod_installed FROM modsys_user_notification WHERE userid=336788 AND threadid=315657
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEmodsys_user_notificationALL    7Using where

Time Before: 0.04847 seconds
Time After: 0.04861 seconds
Time Taken: 0.00014 seconds

Memory Before: 2,182.414 KB
Memory After: 2,198.594 KB
Memory Used: 16.180 KB

SQL Query
SELECT mod_installed FROM modsys_user_notification WHERE userid=210665 AND threadid=315657
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEmodsys_user_notificationALL    7Using where

Time Before: 0.04990 seconds
Time After: 0.04995 seconds
Time Taken: 0.00005 seconds

Memory Before: 2,188.547 KB
Memory After: 2,204.727 KB
Memory Used: 16.180 KB

SQL Query
SELECT mod_installed FROM modsys_user_notification WHERE userid=336788 AND threadid=315657
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEmodsys_user_notificationALL    7Using where

Time Before: 0.05142 seconds
Time After: 0.05147 seconds
Time Taken: 0.00005 seconds

Memory Before: 2,198.180 KB
Memory After: 2,214.359 KB
Memory Used: 16.180 KB

SQL Query
SELECT mod_installed FROM modsys_user_notification WHERE userid=210665 AND threadid=315657
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEmodsys_user_notificationALL    7Using where

Time Before: 0.05274 seconds
Time After: 0.05280 seconds
Time Taken: 0.00006 seconds

Memory Before: 2,203.766 KB
Memory After: 2,219.945 KB
Memory Used: 16.180 KB

SQL Query
SELECT mod_installed FROM modsys_user_notification WHERE userid=37590 AND threadid=315657
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEmodsys_user_notificationALL    7Using where

Time Before: 0.05405 seconds
Time After: 0.05423 seconds
Time Taken: 0.00018 seconds

Memory Before: 2,209.469 KB
Memory After: 2,225.648 KB
Memory Used: 16.180 KB

SQL Query
SELECT mod_installed FROM modsys_user_notification WHERE userid=210665 AND threadid=315657
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEmodsys_user_notificationALL    7Using where

Time Before: 0.05547 seconds
Time After: 0.05552 seconds
Time Taken: 0.00005 seconds

Memory Before: 2,215.352 KB
Memory After: 2,231.531 KB
Memory Used: 16.180 KB

Time after parsing all posts: 0.056487083435059 Memory After: 2,059KB
SQL Query
UPDATE session
SET location = '/showthread.php?explain=1&nojs=1&p=2541397', inthread = 315657
WHERE sessionhash = '3b800912e9bc36afc726532341a3b34f'

Time Before: 0.05847 seconds
Time After: 0.05863 seconds
Time Taken: 0.00016 seconds

Memory Before: 2,418.602 KB
Memory After: 2,418.555 KB
Memory Used: -0.047 KB

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

Time Before: 0.05867 seconds
Time After: 0.05947 seconds
Time Taken: 0.00080 seconds

Memory Before: 2,416.383 KB
Memory After: 2,416.430 KB
Memory Used: 0.047 KB

Page generated in 0.058120012283325 seconds with 30 queries, spending 0.026625633239746 doing MySQL queries and 0.031494379043579 doing PHP things.
Shutdown Queries:
DISABLED