Including Functions.php

Time Before: 0.01472 seconds
Time After: 0.01785 seconds
Time Taken: 0.00314 seconds

Memory Before: 529.969 KB
Memory After: 555.023 KB
Memory Used: 25.055 KB

Connect to Database on Server: 192.168.0.20

Time Before: 0.01794 seconds
Time After: 0.01841 seconds
Time Taken: 0.00046 seconds

Memory Before: 554.961 KB
Memory After: 555.969 KB
Memory Used: 1.008 KB

SQL Query
SET @@sql_mode = ''

Time Before: 0.01865 seconds
Time After: 0.01883 seconds
Time Taken: 0.00018 seconds

Memory Before: 556.531 KB
Memory After: 557.055 KB
Memory Used: 0.523 KB

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

Time Before: 0.01952 seconds
Time After: 0.02194 seconds
Time Taken: 0.00242 seconds

Memory Before: 559.578 KB
Memory After: 560.453 KB
Memory Used: 0.875 KB

Time Before: 0.01888 seconds
Time After: 0.02647 seconds
Time Taken: 0.00759 seconds

Memory Before: 556.305 KB
Memory After: 1,636.555 KB
Memory Used: 1,080.250 KB

SQL Query
SELECT *
FROM datastore
WHERE title IN ('blogcategorycache')
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEdatastoreconstPRIMARYPRIMARY52const1 

Time Before: 0.03217 seconds
Time After: 0.03235 seconds
Time Taken: 0.00017 seconds

Memory Before: 2,118.914 KB
Memory After: 2,119.469 KB
Memory Used: 0.555 KB

Session Handling
SQL Query
SELECT *
FROM session
WHERE userid = 0
	AND host = '192.168.0.1'
	AND idhash = 'ce294c5626a6c3c128594a952859491f'
LIMIT 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEsessionrefidhash,host,userid,guest_lookup,user_activityidhash32const2Using where

Time Before: 0.03347 seconds
Time After: 0.03385 seconds
Time Taken: 0.00039 seconds

Memory Before: 2,136.773 KB
Memory After: 2,137.391 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_reputationlevel AS phrasegroup_reputationlevel,
			phrasegroup_infractionlevel AS phrasegroup_infractionlevel,
			phrasegroup_posting AS phrasegroup_posting,
			phrasegroup_profilefield AS phrasegroup_profilefield,
			phrasegroup_activitystream AS phrasegroup_activitystream,
			phrasegroup_vbblogglobal AS phrasegroup_vbblogglobal,
			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 = 3
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLElanguagesystemPRIMARY   1 

Time Before: 0.03644 seconds
Time After: 0.03799 seconds
Time Taken: 0.00156 seconds

Memory Before: 2,148.938 KB
Memory After: 2,148.578 KB
Memory Used: -0.359 KB

Time Before: 0.03278 seconds
Time After: 0.03825 seconds
Time Taken: 0.00547 seconds

Memory Before: 2,129.633 KB
Memory After: 2,302.242 KB
Memory Used: 172.609 KB

SQL Query
SELECT MAX(permissions & 1) AS perm
FROM cms_permissions
WHERE nodeid = 1 AND usergroupid IN (1)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEcms_permissionsconstusergroupid,nodeidusergroupid8const,const1 

Time Before: 0.06503 seconds
Time After: 0.06531 seconds
Time Taken: 0.00028 seconds

Memory Before: 3,037.273 KB
Memory After: 3,037.789 KB
Memory Used: 0.516 KB

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /data/vhosts/rcw.ms/htdocs/forums/includes/class_database_explain.php:332) in /data/vhosts/rcw.ms/htdocs/forums/includes/facebook/facebook.php on line 49
SQL Query
SELECT *
FROM style
WHERE (styleid = 5 AND userselect = 1)
	OR styleid = 5
ORDER BY styleid ASC
LIMIT 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEstyleconstPRIMARYPRIMARY2const1 

Time Before: 0.07989 seconds
Time After: 0.08115 seconds
Time Taken: 0.00126 seconds

Memory Before: 3,125.586 KB
Memory After: 3,126.180 KB
Memory Used: 0.594 KB

End call of global.php: 0.083608865737915
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
	, bu.bloguserid, bu.entries, bu.options AS blog_options, bu.subscribeown AS blog_subscribeown, bu.memberids, bu.memberblogids,
bu.subscribeothers AS blog_subscribeothers, bu.title AS blog_title, bu.description AS blog_description, bu.allowsmilie AS blog_allowsmilie, bu.draft AS blog_draft, bu.pending AS blog_pending, bu.options_member, bu.options_guest, bu.options_buddy, bu.options_ignore, bu.uncatentries, bu.moderation AS blog_moderation, bu.deleted AS blog_deleted, bu.akismet_key AS blog_akismet_key, isblogmoderator, bu.comments_moderation AS blog_comments_moderation, bu.lastblog, bu.lastblogid, bu.lastblogtitle, bu.categorycache, bu.tagcloud, bu.sidebar, bu.custompages, bu.customblocks, blockparsed.blocktext, 5 AS blogstyleid, blog_usercsscache.csscolors AS blog_csscolors, blog_usercsscache.cachedcss AS blog_cachedcss, IF(blog_usercsscache.cachedcss IS NULL, 0, 1) AS blog_hascachedcss, blog_usercsscache.buildpermissions AS blog_cssbuildpermissions, IF(blog_subscribeuser.blogsubscribeuserid, 1, 0) AS blogsubscribed
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)

LEFT JOIN blog_user AS bu ON (bu.bloguserid = user.userid)
LEFT JOIN blog_custom_block_parsed AS blockparsed ON (blockparsed.userid = user.userid AND blockparsed.styleid = 5 AND blockparsed.languageid = 3)
LEFT JOIN blog_subscribeuser AS blog_subscribeuser ON (user.userid = blog_subscribeuser.bloguserid AND blog_subscribeuser.userid = 61046)
LEFT JOIN blog_usercsscache AS blog_usercsscache ON (user.userid = blog_usercsscache.userid)
WHERE user.userid = 61046 LIMIT 1
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEavatarsystemPRIMARY   0const row not found
1SIMPLEcustomavatarsystemPRIMARY   0const row not found
1SIMPLEcustomprofilepicsystemPRIMARY   0const row not found
1SIMPLEbusystemPRIMARY   0const row not found
1SIMPLEblockparsedsystemPRIMARY   0const row not found
1SIMPLEblog_subscribeusersystembloguserid,userid   0const row not found
1SIMPLEblog_usercsscachesystemPRIMARY   0const row not found
1SIMPLEuserconstPRIMARYPRIMARY4const1 
1SIMPLEuserfieldconstPRIMARYPRIMARY4const1 
1SIMPLEusertextfieldconstPRIMARYPRIMARY4const1 
1SIMPLEsigpicconstPRIMARYPRIMARY4const0unique row not found
1SIMPLEusercsscacheconstPRIMARYPRIMARY4const0unique row not found

Time Before: 0.09843 seconds
Time After: 0.09972 seconds
Time Taken: 0.00128 seconds

Memory Before: 3,838.391 KB
Memory After: 3,837.461 KB
Memory Used: -0.930 KB

SQL Query
SELECT bm.userid, bm.permissions, bm.type, user.username
FROM blog_moderator AS bm
INNER JOIN user AS user USING (userid)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLE       Impossible WHERE noticed after reading const tables

Time Before: 0.10441 seconds
Time After: 0.10471 seconds
Time Taken: 0.00030 seconds

Memory Before: 3,906.125 KB
Memory After: 3,906.586 KB
Memory Used: 0.461 KB

SQL Query
SELECT title, template
FROM template
WHERE templateid IN (61320,61384,61385,61373,61357,61366,0,61326,61386,61387,61415,61310,61309,61870,61899,61860,61861,61863,61869,61868,61695,61696,61697,61698,61463,61464,61699,61704,61700,61701,61702,61705,61706,61707,61708,61709,61760,61762,61764,61766,55011,61816,47496,61818,61819,61822,61823,62065,62235,62241,61874,61872,61875,61877,61876,61878,61879,61880,61881,61882,61883,61884,61889,61886,61888,61885,61887,61898,61900,61901,61910,61892,61903,61904,61905,61906,61908,61871,61897,61902,61911,61907,61913,61912,61909,61989,55071,57273,57295,62316,0,0,6082,38961,42855,57213,38966,57292,5992,38968,38969,57230,62031,62305,45486,61981,53288,61979,61980,62335,0,0,62315,62276,62001,62002,62004,62005,62228,62347,62329,62279,62280,61828,61827,61831,61391,61659)
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEtemplaterangePRIMARYPRIMARY4 124Using where

Time Before: 0.11575 seconds
Time After: 0.11832 seconds
Time Taken: 0.00257 seconds

Memory Before: 4,389.484 KB
Memory After: 4,392.156 KB
Memory Used: 2.672 KB

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

Time Before: 0.13076 seconds
Time After: 0.13105 seconds
Time Taken: 0.00029 seconds

Memory Before: 4,671.648 KB
Memory After: 4,672.164 KB
Memory Used: 0.516 KB

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

Time Before: 0.13196 seconds
Time After: 0.13227 seconds
Time Taken: 0.00030 seconds

Memory Before: 4,692.102 KB
Memory After: 4,692.617 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 
ORDER BY pfc.displayorder, pf.displayorder
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEpfcsystemPRIMARY   0const row not found
1SIMPLEpfALL    25Using where; Using filesort

Time Before: 0.13286 seconds
Time After: 0.13307 seconds
Time Taken: 0.00022 seconds

Memory Before: 4,692.758 KB
Memory After: 4,697.398 KB
Memory Used: 4.641 KB

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

Time Before: 0.24645 seconds
Time After: 0.24683 seconds
Time Taken: 0.00038 seconds

Memory Before: 4,923.594 KB
Memory After: 4,924.117 KB
Memory Used: 0.523 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.24752 seconds
Time After: 0.24774 seconds
Time Taken: 0.00022 seconds

Memory Before: 4,924.414 KB
Memory After: 4,924.930 KB
Memory Used: 0.516 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.24837 seconds
Time After: 0.24862 seconds
Time Taken: 0.00025 seconds

Memory Before: 4,925.523 KB
Memory After: 4,926.039 KB
Memory Used: 0.516 KB

SQL Query
SELECT album.*,
	a.attachmentid, album.moderation,
	fd.thumbnail_dateline, fd.thumbnail_width, fd.thumbnail_height, IF(fd.thumbnail_filesize > 0, 1, 0) AS hasthumbnail
	
FROM album AS album
LEFT JOIN attachment AS a ON (album.coverattachmentid = a.attachmentid)
LEFT JOIN filedata AS fd ON (fd.filedataid = a.filedataid)

WHERE
	album.userid = 61046
		AND
	album.state IN ('public')
	AND album.visible > 0
	
ORDER BY album.lastpicturedate DESC
LIMIT 2
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLE       Impossible WHERE noticed after reading const tables

Time Before: 0.25742 seconds
Time After: 0.25794 seconds
Time Taken: 0.00051 seconds

Memory Before: 4,951.688 KB
Memory After: 4,951.797 KB
Memory Used: 0.109 KB

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

Time Before: 0.25811 seconds
Time After: 0.25849 seconds
Time Taken: 0.00038 seconds

Memory Before: 4,951.648 KB
Memory After: 4,951.969 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 = 61046
	 AND (visible = 1 OR profilevisitor.visitorid = 0)
	
ORDER BY profilevisitor.dateline DESC
LIMIT 10
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEprofilevisitorrefPRIMARY,useriduserid4const1Using where; Using filesort
1SIMPLEusereq_refPRIMARYPRIMARY4cmnt.profilevisitor.visitorid1 

Time Before: 0.25919 seconds
Time After: 0.26006 seconds
Time Taken: 0.00087 seconds

Memory Before: 4,952.945 KB
Memory After: 4,953.141 KB
Memory Used: 0.195 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 = 61046
	AND socialgroupmember.type = 'member'
ORDER BY socialgroup.name
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEsocialgroupmemberrefPRIMARY,groupid,useriduserid5const,const1Using where; Using temporary; Using filesort
1SIMPLEsocialgroupeq_refPRIMARYPRIMARY4cmnt.socialgroupmember.groupid1 
1SIMPLEsgiconeq_refPRIMARYPRIMARY4cmnt.socialgroup.groupid1 

Time Before: 0.26189 seconds
Time After: 0.26272 seconds
Time Taken: 0.00083 seconds

Memory Before: 4,957.570 KB
Memory After: 4,957.602 KB
Memory Used: 0.031 KB

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

Time Before: 0.26660 seconds
Time After: 0.26688 seconds
Time Taken: 0.00028 seconds

Memory Before: 4,955.828 KB
Memory After: 4,956.352 KB
Memory Used: 0.523 KB

SQL Query
SELECT COUNT(*) AS albumcount, SUM(album.visible) AS picturecount
FROM album AS album
WHERE album.userid = 61046
	AND album.state IN ('public')
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLE       Impossible WHERE noticed after reading const tables

Time Before: 0.26757 seconds
Time After: 0.26785 seconds
Time Taken: 0.00028 seconds

Memory Before: 4,963.680 KB
Memory After: 4,964.141 KB
Memory Used: 0.461 KB

SQL Query
SELECT relationid
FROM userlist
WHERE
	userid IN (61046)
		AND
	type = 'buddy'
		AND
	friend = 'yes'
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLEuserlistrefPRIMARYPRIMARY4const1Using where

Time Before: 0.30224 seconds
Time After: 0.30254 seconds
Time Taken: 0.00030 seconds

Memory Before: 5,005.406 KB
Memory After: 5,005.875 KB
Memory Used: 0.469 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 <= 1778923598 AND stream.userid IN (61046)
ORDER BY dateline DESC
LIMIT 0, 30
idselect_typetabletypepossible_keyskeykey_lenrefrowsExtra
1SIMPLE       Impossible WHERE noticed after reading const tables

Time Before: 0.30323 seconds
Time After: 0.30355 seconds
Time Taken: 0.00032 seconds

Memory Before: 5,012.039 KB
Memory After: 5,012.352 KB
Memory Used: 0.313 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.34040 seconds
Time After: 0.34064 seconds
Time Taken: 0.00024 seconds

Memory Before: 5,206.586 KB
Memory After: 5,207.125 KB
Memory Used: 0.539 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.34118 seconds
Time After: 0.34138 seconds
Time Taken: 0.00020 seconds

Memory Before: 5,207.359 KB
Memory After: 5,207.898 KB
Memory Used: 0.539 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.34196 seconds
Time After: 0.34216 seconds
Time Taken: 0.00021 seconds

Memory Before: 5,207.531 KB
Memory After: 5,208.047 KB
Memory Used: 0.516 KB

SQL Query
UPDATE session
SET lastactivity = 1778923598, location = 'http://racingweb.org/forum/member.php?u=61046', badlocation = 0
WHERE sessionhash = '2fd666d791d042f2836c40238ee05606'

Time Before: 0.34770 seconds
Time After: 0.34796 seconds
Time Taken: 0.00026 seconds

Memory Before: 5,492.484 KB
Memory After: 5,492.703 KB
Memory Used: 0.219 KB

Page generated in 0.34631180763245 seconds with 28 queries, spending 0.017209053039551 doing MySQL queries and 0.3291027545929 doing PHP things.
Shutdown Queries:
DISABLED