Including Functions.php

Time Before: 0.00105 seconds
Time After: 0.00129 seconds
Time Taken: 0.00024 seconds

Memory Before: 510.063 KB
Memory After: 532.836 KB
Memory Used: 22.773 KB

Connect to Database on Server: localhost

Time Before: 0.00138 seconds
Time After: 0.00173 seconds
Time Taken: 0.00034 seconds

Memory Before: 532.773 KB
Memory After: 533.688 KB
Memory Used: 0.914 KB

SQL Query
SET @@sql_mode = ''

Time Before: 0.00190 seconds
Time After: 0.00202 seconds
Time Taken: 0.00013 seconds

Memory Before: 534.242 KB
Memory After: 534.766 KB
Memory Used: 0.523 KB

Datastore Setup
SQL Query
SELECT *
FROM datastore
WHERE title IN ('smiliecache','bbcodecache','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.00285 seconds
Time After: 0.00355 seconds
Time Taken: 0.00070 seconds

Memory Before: 537.656 KB
Memory After: 538.500 KB
Memory Used: 0.844 KB

Time Before: 0.00207 seconds
Time After: 0.00626 seconds
Time Taken: 0.00419 seconds

Memory Before: 534.016 KB
Memory After: 1,142.438 KB
Memory Used: 608.422 KB

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

Time Before: 0.00900 seconds
Time After: 0.00934 seconds
Time Taken: 0.00034 seconds

Memory Before: 1,639.375 KB
Memory After: 1,639.992 KB
Memory Used: 0.617 KB

SQL Query
SELECT languageid,
			phrasegroup_global AS phrasegroup_global,
			phrasegroup_wol AS phrasegroup_wol,
			phrasegroup_user AS phrasegroup_user,
			phrasegroup_messaging AS phrasegroup_messaging,
			phrasegroup_cprofilefield AS phrasegroup_cprofilefield,
			phrasegroup_infractionlevel AS phrasegroup_infractionlevel,
			phrasegroup_posting AS phrasegroup_posting,
			phrasegroup_profilefield AS phrasegroup_profilefield,
			phrasegroup_activitystream AS phrasegroup_activitystream,
			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.01035 seconds
Time After: 0.01109 seconds
Time Taken: 0.00074 seconds

Memory Before: 1,652.523 KB
Memory After: 1,652.266 KB
Memory Used: -0.258 KB

Time Before: 0.00829 seconds
Time After: 0.01137 seconds
Time Taken: 0.00308 seconds

Memory Before: 1,631.852 KB
Memory After: 1,781.016 KB
Memory Used: 149.164 KB

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

Time Before: 0.01199 seconds
Time After: 0.01219 seconds
Time Taken: 0.00020 seconds

Memory Before: 1,782.125 KB
Memory After: 1,782.703 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.01939 seconds
Time After: 0.01971 seconds
Time Taken: 0.00032 seconds

Memory Before: 2,375.102 KB
Memory After: 2,375.695 KB
Memory Used: 0.594 KB

End call of global.php: 0.021707057952881
SQL Query
SELECT 
	userfield.*, usertextfield.*, user.*, UNIX_TIMESTAMP(passworddate) AS passworddate, user.languageid AS saved_languageid,
	IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline, customavatar.width AS avwidth, customavatar.height AS avheight, customavatar.height_thumb AS avheight_thumb, customavatar.width_thumb AS avwidth_thumb, customavatar.filedata_thumb, customprofilepic.userid AS profilepic, customprofilepic.dateline AS profilepicdateline, customprofilepic.width AS ppwidth, customprofilepic.height AS ppheight, sigpic.userid AS sigpic, sigpic.dateline AS sigpicdateline, sigpic.width AS sigpicwidth, sigpic.height AS sigpicheight, usercsscache.cachedcss, IF(usercsscache.cachedcss IS NULL, 0, 1) AS hascachedcss, usercsscache.buildpermissions AS cssbuildpermissions
	
FROM user AS user
LEFT JOIN userfield AS userfield ON (user.userid = userfield.userid)
LEFT JOIN usertextfield AS usertextfield ON (usertextfield.userid = user.userid) LEFT JOIN avatar AS avatar ON (avatar.avatarid = user.avatarid) LEFT JOIN customavatar AS customavatar ON (customavatar.userid = user.userid) LEFT JOIN customprofilepic AS customprofilepic ON (user.userid = customprofilepic.userid) LEFT JOIN sigpic AS sigpic ON (user.userid = sigpic.userid) LEFT JOIN usercsscache AS usercsscache ON (user.userid = usercsscache.userid)

WHERE user.userid = 157
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEavatarsystemPRIMARY   0Const row not found
1SIMPLEcustomavatarsystemPRIMARY   0Const row not found
1SIMPLEsigpicsystemPRIMARY   0Const row not found
1SIMPLEusercsscachesystemPRIMARY   0Const row not found
1SIMPLEuserconstPRIMARYPRIMARY4const1 
1SIMPLEuserfieldconstPRIMARYPRIMARY4const1 
1SIMPLEusertextfieldconstPRIMARYPRIMARY4const1 
1SIMPLEcustomprofilepicconstPRIMARYPRIMARY4const0Unique row not found

Time Before: 0.02296 seconds
Time After: 0.02367 seconds
Time Taken: 0.00071 seconds

Memory Before: 2,968.688 KB
Memory After: 2,968.680 KB
Memory Used: -0.008 KB

SQL Query
SELECT title, template
FROM template
WHERE templateid IN (800,829,790,791,793,799,798,626,627,628,0,0,629,0,0,630,635,631,632,633,636,637,638,639,640,691,693,695,697,699,0,746,745,748,749,752,753,995,1165,1171,804,802,805,807,806,808,809,810,811,812,813,814,819,816,818,815,817,828,830,831,840,822,833,834,835,836,838,801,827,832,841,837,843,842,839,919,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 110Using index condition

Time Before: 0.02662 seconds
Time After: 0.02829 seconds
Time Taken: 0.00167 seconds

Memory Before: 3,375.656 KB
Memory After: 3,378.281 KB
Memory Used: 2.625 KB

SQL Query
SELECT MAX(dateline) AS lastpost, COUNT(*) AS total
FROM usernote AS usernote
WHERE userid = 157
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLE       Impossible WHERE noticed after reading const tables

Time Before: 0.03409 seconds
Time After: 0.03432 seconds
Time Taken: 0.00023 seconds

Memory Before: 3,612.461 KB
Memory After: 3,612.977 KB
Memory Used: 0.516 KB

SQL Query
SELECT blockid, requirement
FROM profileblockprivacy
WHERE userid = 157
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEprofileblockprivacyrefPRIMARYPRIMARY4const1 

Time Before: 0.03514 seconds
Time After: 0.03538 seconds
Time Taken: 0.00024 seconds

Memory Before: 3,631.977 KB
Memory After: 3,632.492 KB
Memory Used: 0.516 KB

SQL Query
SELECT pf.profilefieldcategoryid, pfc.location, pf.*
FROM profilefield AS pf
LEFT JOIN profilefieldcategory AS pfc ON(pfc.profilefieldcategoryid = pf.profilefieldcategoryid)
WHERE pf.form = 0 
		AND pf.hidden = 0
ORDER BY pfc.displayorder, pf.displayorder
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEpfALL    4Using where; Using temporary; Using filesort
1SIMPLEpfceq_refPRIMARYPRIMARY2business_business.pf.profilefieldcategoryid1 

Time Before: 0.03611 seconds
Time After: 0.03766 seconds
Time Taken: 0.00155 seconds

Memory Before: 3,632.734 KB
Memory After: 3,633.750 KB
Memory Used: 1.016 KB

SQL Query
SELECT * FROM customprofile WHERE userid='-1'
/**customprofile- member**/
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLE       Impossible WHERE noticed after reading const tables

Time Before: 0.03930 seconds
Time After: 0.03957 seconds
Time Taken: 0.00026 seconds

Memory Before: 3,774.031 KB
Memory After: 3,774.547 KB
Memory Used: 0.516 KB

SQL Query
UPDATE user SET
	profilevisits = profilevisits + 1
WHERE userid = 157

Time Before: 0.04049 seconds
Time After: 0.04078 seconds
Time Taken: 0.00029 seconds

Memory Before: 3,787.070 KB
Memory After: 3,787.391 KB
Memory Used: 0.320 KB

SQL Query
SELECT user.userid, user.username, user.usergroupid, user.displaygroupid, profilevisitor.visible, user.infractiongroupid
	
FROM profilevisitor AS profilevisitor
INNER JOIN user AS user ON (user.userid = profilevisitor.visitorid)

WHERE profilevisitor.userid = 157
	 AND (visible = 1 OR profilevisitor.visitorid = 0)
	
ORDER BY profilevisitor.dateline DESC
LIMIT 10
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEprofilevisitorrefPRIMARY,useriduserid4const10Using where; Using filesort
1SIMPLEusereq_refPRIMARYPRIMARY4business_business.profilevisitor.visitorid1 

Time Before: 0.04148 seconds
Time After: 0.04212 seconds
Time Taken: 0.00063 seconds

Memory Before: 3,788.359 KB
Memory After: 3,789.125 KB
Memory Used: 0.766 KB

SQL Query
SELECT socialgroup.groupid, socialgroup.name, socialgroup.description, socialgroup.dateline, sgicon.dateline AS icondateline,
	sgicon.thumbnail_width AS iconthumb_width, sgicon.thumbnail_height AS iconthumb_height
FROM socialgroupmember AS socialgroupmember
INNER JOIN socialgroup AS socialgroup ON
	(socialgroup.groupid = socialgroupmember.groupid)
LEFT JOIN socialgroupicon AS sgicon ON sgicon.groupid = socialgroup.groupid
WHERE
	socialgroupmember.userid = 157
	AND socialgroupmember.type = 'member'
ORDER BY socialgroup.name
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLE       Impossible WHERE noticed after reading const tables

Time Before: 0.04395 seconds
Time After: 0.04423 seconds
Time Taken: 0.00028 seconds

Memory Before: 3,816.023 KB
Memory After: 3,816.055 KB
Memory Used: 0.031 KB

SQL Query
SELECT SQL_CALC_FOUND_ROWS
	visitormessage.*, user.*, visitormessage.ipaddress AS messageipaddress
	
	
	,avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustomavatar, customavatar.dateline AS avatardateline,customavatar.width AS avwidth,customavatar.height AS avheight, customavatar.width_thumb AS avwidth_thumb, customavatar.height_thumb AS avheight_thumb, filedata_thumb, NOT ISNULL(customavatar.userid) AS hascustom
	
FROM visitormessage AS visitormessage
LEFT JOIN user AS user ON (visitormessage.postuserid = user.userid)

LEFT JOIN avatar AS avatar ON(avatar.avatarid = user.avatarid) LEFT JOIN customavatar AS customavatar ON(customavatar.userid = user.userid)


WHERE visitormessage.userid = 157
	AND (visitormessage.state IN ('visible'))

	
ORDER BY visitormessage.dateline DESC
LIMIT 0, 10
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEavatarsystemPRIMARY   0Const row not found
1SIMPLEcustomavatarsystemPRIMARY   0Const row not found
1SIMPLEvisitormessagerefuseriduserid4const1Using where
1SIMPLEusereq_refPRIMARYPRIMARY4business_business.visitormessage.postuserid1 

Time Before: 0.04555 seconds
Time After: 0.04621 seconds
Time Taken: 0.00065 seconds

Memory Before: 3,887.789 KB
Memory After: 3,887.523 KB
Memory Used: -0.266 KB

SQL Query
SELECT FOUND_ROWS()
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLE       No tables used

Time Before: 0.04667 seconds
Time After: 0.04679 seconds
Time Taken: 0.00012 seconds

Memory Before: 3,885.125 KB
Memory After: 3,885.773 KB
Memory Used: 0.648 KB

SQL Query
SELECT COUNT(*) AS messages, MAX(visitormessage.dateline) AS dateline
FROM visitormessage AS visitormessage

WHERE visitormessage.userid = 157
	AND (visitormessage.state IN ('visible') OR (visitormessage.postuserid = 0 AND state = 'moderation'))
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEvisitormessagerefpostuserid,useriduserid4const1Using index condition; Using where

Time Before: 0.04771 seconds
Time After: 0.04804 seconds
Time Taken: 0.00033 seconds

Memory Before: 3,919.859 KB
Memory After: 3,920.203 KB
Memory Used: 0.344 KB

SQL Query
SELECT COUNT(*) AS count
FROM user
WHERE referrerid = 157
	AND usergroupid NOT IN (3,4)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEuserrefusergroupid,referreridreferrerid4const1Using where

Time Before: 0.04877 seconds
Time After: 0.04906 seconds
Time Taken: 0.00029 seconds

Memory Before: 3,912.359 KB
Memory After: 3,912.883 KB
Memory Used: 0.523 KB

SQL Query
SELECT thread.title, thread.threadid, thread.forumid, thread.postuserid, post.postid, post.dateline
FROM post AS post
INNER JOIN thread AS thread USING (threadid)
WHERE thread.visible = 1
	AND post.userid  = 157
	AND post.visible = 1
ORDER BY post.dateline DESC
LIMIT 20
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEpostrefthreadid,threadid_visible_dateline,userid,user_dateuser_date4const1Using where
1SIMPLEthreadeq_refPRIMARYPRIMARY4business_business.post.threadid1Using where

Time Before: 0.04980 seconds
Time After: 0.05028 seconds
Time Taken: 0.00048 seconds

Memory Before: 3,913.742 KB
Memory After: 3,914.094 KB
Memory Used: 0.352 KB

SQL Query
SELECT relationid
FROM userlist
WHERE
	userid IN (157)
		AND
	type = 'buddy'
		AND
	friend = 'yes'
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLE       Impossible WHERE noticed after reading const tables

Time Before: 0.05273 seconds
Time After: 0.05291 seconds
Time Taken: 0.00018 seconds

Memory Before: 3,952.344 KB
Memory After: 3,952.820 KB
Memory Used: 0.477 KB

SQL Query
SELECT stream.*, type.section, type.type
FROM activitystream AS stream
LEFT JOIN activitystreamtype AS type ON (stream.typeid = type.typeid)
WHERE stream.dateline <> 0 AND stream.dateline <= 1776868807 AND stream.userid IN (157)
ORDER BY dateline DESC
LIMIT 0, 30
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLE       Impossible WHERE noticed after reading const tables

Time Before: 0.05343 seconds
Time After: 0.05367 seconds
Time Taken: 0.00024 seconds

Memory Before: 3,958.820 KB
Memory After: 3,959.133 KB
Memory Used: 0.313 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.05555 seconds
Time After: 0.05591 seconds
Time Taken: 0.00036 seconds

Memory Before: 3,957.820 KB
Memory After: 3,961.281 KB
Memory Used: 3.461 KB

SQL Query
SELECT * FROM customprofile WHERE userid='-1'
/**customprofile- member**/
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLE       Impossible WHERE noticed after reading const tables

Time Before: 0.05891 seconds
Time After: 0.05913 seconds
Time Taken: 0.00023 seconds

Memory Before: 4,060.156 KB
Memory After: 4,060.672 KB
Memory Used: 0.516 KB

SQL Query
UPDATE session
SET lastactivity = 1776868807, location = 'member.php?u=157', incalendar = 0, badlocation = 0
WHERE sessionhash = 'e1096412ca1c3a778b1ec79695bd2a74'

Time Before: 0.06241 seconds
Time After: 0.06261 seconds
Time Taken: 0.00020 seconds

Memory Before: 4,281.344 KB
Memory After: 4,281.570 KB
Memory Used: 0.227 KB

Page generated in 0.061541080474854 seconds with 25 queries, spending 0.011719942092896 doing MySQL queries and 0.049821138381958 doing PHP things.
Shutdown Queries:
DISABLED