Including Functions.php

Time Before: 0.00078 seconds
Time After: 0.00087 seconds
Time Taken: 0.00009 seconds

Memory Before: 482.555 KB
Memory After: 484.367 KB
Memory Used: 1.813 KB

Connect to Database on Server: localhost

Time Before: 0.00091 seconds
Time After: 0.00110 seconds
Time Taken: 0.00019 seconds

Memory Before: 484.344 KB
Memory After: 484.922 KB
Memory Used: 0.578 KB

SQL Query
SET @@sql_mode = ''

Time Before: 0.00122 seconds
Time After: 0.00137 seconds
Time Taken: 0.00015 seconds

Memory Before: 484.945 KB
Memory After: 485.000 KB
Memory Used: 0.055 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')
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEdatastorerangePRIMARYPRIMARY50 15Using index condition

Time Before: 0.00169 seconds
Time After: 0.00227 seconds
Time Taken: 0.00058 seconds

Memory Before: 487.234 KB
Memory After: 1,044.102 KB
Memory Used: 556.867 KB

Time Before: 0.00139 seconds
Time After: 0.00377 seconds
Time Taken: 0.00238 seconds

Memory Before: 484.766 KB
Memory After: 1,447.875 KB
Memory Used: 963.109 KB

SQL Query
SELECT *
FROM datastore
WHERE title IN ('dbtech_ajaxthreads_usergroup')
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLE       Impossible WHERE noticed after reading const tables

Time Before: 0.00438 seconds
Time After: 0.00460 seconds
Time Taken: 0.00022 seconds

Memory Before: 1,605.430 KB
Memory After: 1,621.500 KB
Memory Used: 16.070 KB

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

Time Before: 0.00518 seconds
Time After: 0.00558 seconds
Time Taken: 0.00040 seconds

Memory Before: 1,611.109 KB
Memory After: 1,627.805 KB
Memory Used: 16.695 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,
			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.00621 seconds
Time After: 0.00715 seconds
Time Taken: 0.00094 seconds

Memory Before: 1,618.086 KB
Memory After: 2,027.000 KB
Memory Used: 408.914 KB

Time Before: 0.00471 seconds
Time After: 0.00723 seconds
Time Taken: 0.00253 seconds

Memory Before: 1,607.945 KB
Memory After: 1,825.156 KB
Memory Used: 217.211 KB

SQL Query
SELECT userip
FROM vsavilxh_guests AS vsavilxh_guests
WHERE userip = '18.97.14.86'
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEvsavilxh_guestsALL    872Using where

Time Before: 0.00924 seconds
Time After: 0.00953 seconds
Time Taken: 0.00028 seconds

Memory Before: 2,081.602 KB
Memory After: 2,097.844 KB
Memory Used: 16.242 KB

SQL Query
UPDATE vsavilxh_guests
SET dateline = '1745409144'
WHERE userip = '18.97.14.86'

Time Before: 0.00954 seconds
Time After: 0.01389 seconds
Time Taken: 0.00434 seconds

Memory Before: 2,097.992 KB
Memory After: 2,097.977 KB
Memory Used: -0.016 KB

SQL Query
DELETE FROM vsavilxh_guests WHERE dateline < '1745322744'

Time Before: 0.01392 seconds
Time After: 0.01455 seconds
Time Taken: 0.00063 seconds

Memory Before: 2,081.289 KB
Memory After: 2,081.273 KB
Memory Used: -0.016 KB

SQL Query
SELECT *
FROM style
WHERE (styleid = 12 AND userselect = 1)
	OR styleid = 12
ORDER BY styleid ASC
LIMIT 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEstyleconstPRIMARYPRIMARY2const1 

Time Before: 0.01495 seconds
Time After: 0.01521 seconds
Time Taken: 0.00026 seconds

Memory Before: 2,071.688 KB
Memory After: 2,280.336 KB
Memory Used: 208.648 KB

End call of global.php: 0.016211986541748
SQL Query
SELECT *
FROM datastore
WHERE title IN ('routes')
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEdatastoreconstPRIMARYPRIMARY50const1 

Time Before: 0.01677 seconds
Time After: 0.01699 seconds
Time Taken: 0.00022 seconds

Memory Before: 2,485.938 KB
Memory After: 2,502.273 KB
Memory Used: 16.336 KB

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 = 850
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEavatarsystemPRIMARY   0Const row not found
1SIMPLEusercsscachesystemPRIMARY   0Const row not found
1SIMPLEuserconstPRIMARYPRIMARY4const1 
1SIMPLEuserfieldconstPRIMARYPRIMARY4const1 
1SIMPLEusertextfieldconstPRIMARYPRIMARY4const1 
1SIMPLEcustomavatarconstPRIMARYPRIMARY4const0Unique row not found
1SIMPLEcustomprofilepicconstPRIMARYPRIMARY4const0Unique row not found
1SIMPLEsigpicconstPRIMARYPRIMARY4const0Unique row not found

Time Before: 0.01843 seconds
Time After: 0.01910 seconds
Time Taken: 0.00067 seconds

Memory Before: 2,655.570 KB
Memory After: 2,715.461 KB
Memory Used: 59.891 KB

SQL Query
SELECT title, template
FROM template
WHERE templateid IN (1179,1206,1169,1170,1172,1178,1177,1070,1072,1074,2212,1078,0,1125,1124,1127,1128,1131,1132,1371,1542,1548,1183,1181,1184,1185,1186,1187,1188,1189,1190,1191,1192,1196,1194,1195,1193,1205,1207,1208,1217,1199,1210,1211,1212,1213,1215,1180,1204,1209,1218,1214,1220,1219,1216,1295,2233,2231,2234,2235,0,0,79,73,72,2344,2347,2101,75,80,81,82,1337,1634,2221,2222,1286,1287,1650,0,0,1613,1615,1307,1308,1310,1311,1534,1577,1576,1626,1578,1137,1136,1140,2249,1937,1931,1932,1129,1130,2226,2330)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEtemplaterangePRIMARYPRIMARY4 99Using index condition

Time Before: 0.02060 seconds
Time After: 0.02203 seconds
Time Taken: 0.00143 seconds

Memory Before: 2,824.828 KB
Memory After: 3,142.383 KB
Memory Used: 317.555 KB

SQL Query
SELECT * FROM molding ORDER BY molding.order ASC
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEmoldingALL    11Using filesort

Time Before: 0.02339 seconds
Time After: 0.02363 seconds
Time Taken: 0.00023 seconds

Memory Before: 3,157.781 KB
Memory After: 3,175.523 KB
Memory Used: 17.742 KB

SQL Query
SELECT MAX(dateline) AS lastpost, COUNT(*) AS total
FROM usernote AS usernote
WHERE userid = 850
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEusernoterefuseriduserid4const1 

Time Before: 0.02514 seconds
Time After: 0.02534 seconds
Time Taken: 0.00021 seconds

Memory Before: 3,166.391 KB
Memory After: 3,182.742 KB
Memory Used: 16.352 KB

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

Time Before: 0.02569 seconds
Time After: 0.02593 seconds
Time Taken: 0.00024 seconds

Memory Before: 3,180.203 KB
Memory After: 3,196.398 KB
Memory Used: 16.195 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
1SIMPLEpfcsystemPRIMARY   0Const row not found
1SIMPLEpfALL    7Using where; Using filesort

Time Before: 0.02622 seconds
Time After: 0.02653 seconds
Time Taken: 0.00031 seconds

Memory Before: 3,196.781 KB
Memory After: 3,215.430 KB
Memory Used: 18.648 KB

SQL Query
SELECT user.*, (user.options & 512) AS invisible , avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustom, customavatar.dateline AS avatardateline, customavatar.filedata_thumb, customavatar.height AS avheight, customavatar.width AS avwidth, customavatar.width_thumb AS avwidth_thumb, customavatar.height_thumb AS avheight_thumb
	
FROM userlist AS userlist
INNER JOIN user AS user ON (user.userid = userlist.relationid)
LEFT JOIN avatar AS avatar ON (avatar.avatarid = user.avatarid)
LEFT JOIN customavatar AS customavatar ON (customavatar.userid = user.userid) 

WHERE userlist.userid = 850
	AND userlist.type = 'buddy'
	AND userlist.friend = 'yes'
	
ORDER BY RAND()
LIMIT 0, 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEavatarsystemPRIMARY   0Const row not found; Using temporary; Using filesort
1SIMPLEuserlistrefPRIMARY,relationid,useriduserid6const,const,const1Using index condition
1SIMPLEusereq_refPRIMARYPRIMARY4mihangam_mforum.userlist.relationid1 
1SIMPLEcustomavatareq_refPRIMARYPRIMARY4mihangam_mforum.userlist.relationid1 

Time Before: 0.02765 seconds
Time After: 0.02860 seconds
Time Taken: 0.00095 seconds

Memory Before: 3,212.875 KB
Memory After: 3,246.219 KB
Memory Used: 33.344 KB

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

Time Before: 0.02902 seconds
Time After: 0.02942 seconds
Time Taken: 0.00040 seconds

Memory Before: 3,214.258 KB
Memory After: 3,214.305 KB
Memory Used: 0.047 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 = 850
	 AND (visible = 1 OR profilevisitor.visitorid = 0)
	
ORDER BY profilevisitor.dateline DESC
LIMIT 10
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEprofilevisitorrefPRIMARY,useriduserid4const6Using where; Using filesort
1SIMPLEusereq_refPRIMARYPRIMARY4mihangam_mforum.profilevisitor.visitorid1 

Time Before: 0.02974 seconds
Time After: 0.03013 seconds
Time Taken: 0.00038 seconds

Memory Before: 3,215.016 KB
Memory After: 3,231.883 KB
Memory Used: 16.867 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 = 850
	AND socialgroupmember.type = 'member'
ORDER BY socialgroup.name
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEsocialgroupmemberrefPRIMARY,groupid,useriduserid5const,const1Using index condition; Using temporary; Using filesort
1SIMPLEsocialgroupeq_refPRIMARYPRIMARY4mihangam_mforum.socialgroupmember.groupid1 
1SIMPLEsgiconeq_refPRIMARYPRIMARY4mihangam_mforum.socialgroupmember.groupid1 

Time Before: 0.03092 seconds
Time After: 0.03133 seconds
Time Taken: 0.00041 seconds

Memory Before: 3,225.352 KB
Memory After: 3,240.992 KB
Memory Used: 15.641 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 = 850
	AND (visitormessage.state IN ('visible'))

	
ORDER BY visitormessage.dateline DESC
LIMIT 0, 10
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEavatarsystemPRIMARY   0Const row not found
1SIMPLEvisitormessagerefuseriduserid4const1Using where
1SIMPLEusereq_refPRIMARYPRIMARY4mihangam_mforum.visitormessage.postuserid1 
1SIMPLEcustomavatareq_refPRIMARYPRIMARY4mihangam_mforum.user.userid1Using where

Time Before: 0.03202 seconds
Time After: 0.03260 seconds
Time Taken: 0.00058 seconds

Memory Before: 3,240.422 KB
Memory After: 3,296.250 KB
Memory Used: 55.828 KB

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

Time Before: 0.03281 seconds
Time After: 0.03295 seconds
Time Taken: 0.00014 seconds

Memory Before: 3,294.688 KB
Memory After: 3,311.125 KB
Memory Used: 16.438 KB

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

WHERE visitormessage.userid = 850
	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.03326 seconds
Time After: 0.03346 seconds
Time Taken: 0.00020 seconds

Memory Before: 3,301.703 KB
Memory After: 3,317.742 KB
Memory Used: 16.039 KB

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

Time Before: 0.03381 seconds
Time After: 0.03403 seconds
Time Taken: 0.00021 seconds

Memory Before: 3,243.234 KB
Memory After: 3,259.570 KB
Memory Used: 16.336 KB

SQL Query
SELECT user.*, (user.options & 512) AS invisible , avatar.avatarpath, NOT ISNULL(customavatar.userid) AS hascustom, customavatar.dateline AS avatardateline, customavatar.filedata_thumb, customavatar.height AS avheight, customavatar.width AS avwidth, customavatar.width_thumb AS avwidth_thumb, customavatar.height_thumb AS avheight_thumb
	
FROM userlist AS userlist
INNER JOIN user AS user ON (user.userid = userlist.relationid)
LEFT JOIN avatar AS avatar ON (avatar.avatarid = user.avatarid)
LEFT JOIN customavatar AS customavatar ON (customavatar.userid = user.userid) 

WHERE userlist.userid = 850
	AND userlist.type = 'buddy'
	AND userlist.friend = 'yes'
	
ORDER BY user.username ASC
LIMIT 0, 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEavatarsystemPRIMARY   0Const row not found; Using temporary; Using filesort
1SIMPLEuserlistrefPRIMARY,relationid,useriduserid6const,const,const1Using index condition
1SIMPLEusereq_refPRIMARYPRIMARY4mihangam_mforum.userlist.relationid1 
1SIMPLEcustomavatareq_refPRIMARYPRIMARY4mihangam_mforum.userlist.relationid1 

Time Before: 0.03540 seconds
Time After: 0.03609 seconds
Time Taken: 0.00069 seconds

Memory Before: 3,249.727 KB
Memory After: 3,282.945 KB
Memory Used: 33.219 KB

SQL Query
SELECT * FROM customprofile WHERE userid='-1'
/**customprofile- member**/
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEcustomprofilerefuseriduserid4const1 

Time Before: 0.03764 seconds
Time After: 0.03786 seconds
Time Taken: 0.00022 seconds

Memory Before: 3,263.977 KB
Memory After: 3,280.281 KB
Memory Used: 16.305 KB

SQL Query
SELECT * FROM customprofile WHERE userid='-1'
/**customprofile- member**/
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEcustomprofilerefuseriduserid4const1 

Time Before: 0.03853 seconds
Time After: 0.03860 seconds
Time Taken: 0.00007 seconds

Memory Before: 3,268.516 KB
Memory After: 3,284.820 KB
Memory Used: 16.305 KB

SQL Query
UPDATE session
SET lastactivity = 1745409144, location = 'member.php?u=850', inforum = 0, badlocation = 0
WHERE sessionhash = '2477addcfbd66014e02c153a0de1a423'

Time Before: 0.03989 seconds
Time After: 0.04013 seconds
Time Taken: 0.00024 seconds

Memory Before: 3,377.977 KB
Memory After: 3,377.898 KB
Memory Used: -0.078 KB

Page generated in 0.039343118667603 seconds with 28 queries, spending 0.015790700912476 doing MySQL queries and 0.023552417755127 doing PHP things.
Shutdown Queries:
DISABLED