SELECT data_key, data_value
FROM xf_data_registry
WHERE data_key IN ('options', 'languages', 'contentTypes', 'codeEventListeners', 'deferredRun', 'simpleCache', 'addOns', 'defaultStyleProperties', 'routesPublic', 'routeFiltersIn', 'routeFiltersOut', 'nodeTypes', 'bannedIps', 'discouragedIps', 'styles', 'displayStyles', 'userBanners', 'smilies', 'bbCode', 'threadPrefixes', 'trophyUserTitles', 'reportCounts', 'moderationCounts', 'userModerationCounts', 'notices', 'userFieldsInfo')
Run Time: 0.001379
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_data_registry | range | PRIMARY | PRIMARY | 27 | | 26 | Using where |
SELECT cache_value
FROM xf_permission_combination
WHERE permission_combination_id = ?
Params: 1
Run Time: 0.000220
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_permission_combination | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SELECT
user.*,
user_profile.*,
user_privacy.*,
news_feed.*
FROM
(
SELECT xf_news_feed.*
FROM xf_news_feed FORCE INDEX (event_date)
INNER JOIN
(
SELECT xf_news_feed.user_id, Max(xf_news_feed.news_feed_id) AS max_news_feed_id
FROM xf_news_feed
GROUP BY xf_news_feed.user_id
)
max_news
ON xf_news_feed.news_feed_id = max_news.max_news_feed_id
)
AS news_feed
INNER JOIN xf_user AS user ON
(user.user_id = news_feed.user_id)
INNER JOIN xf_user_profile AS user_profile ON
(user_profile.user_id = user.user_id)
LEFT JOIN xf_user_follow AS user_follow ON
(user_follow.user_id = user.user_id
AND user_follow.follow_user_id = 0)
INNER JOIN xf_user_privacy AS user_privacy ON
(user_privacy.user_id = user.user_id
AND (user.user_id = 0
OR (
user_privacy.allow_receive_news_feed <> 'none'
AND IF(user_privacy.allow_receive_news_feed = 'members', 0, 1)
AND IF(user_privacy.allow_receive_news_feed = 'followed', user_follow.user_id IS NOT NULL, 1)
)
)
)
WHERE (user.user_state IN ('valid', 'email_confirm_edit')) AND (user.is_banned = 0)
and content_type in ("post","profile_post","thread","wiki")
and action not in ("like")
-- and action in ("insert","location","avatar_change","update","occupation")
ORDER BY news_feed.event_date DESC
LIMIT 15
Run Time: 0.001470
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
PRIMARY | | | | | | | | Impossible WHERE noticed after reading const tables |
DERIVED | | | | | | | | no matching row in const table |
DERIVED | | | | | | | | no matching row in const table |
SELECT count_tr.thread_id, count_tr.cou, xf_thread.title, xf_thread.last_post_id
FROM
(
SELECT news_pt.thread_id, Count(*) AS cou
FROM
(
SELECT * FROM
(
SELECT xf_news_feed.news_feed_id, xf_post.thread_id
FROM xf_news_feed INNER JOIN xf_post ON xf_news_feed.content_id = xf_post.post_id
WHERE (xf_news_feed.content_type="post")
) as news_post
UNION SELECT * FROM
(
SELECT xf_news_feed.news_feed_id, xf_thread.thread_id
FROM xf_news_feed INNER JOIN xf_thread ON xf_news_feed.content_id = xf_thread.thread_id
WHERE (xf_news_feed.content_type="thread")
) as news_tread
) as news_pt
GROUP BY news_pt.thread_id
) as count_tr
INNER JOIN xf_thread ON count_tr.thread_id=xf_thread.thread_id
ORDER BY count_tr.cou DESC
Run Time: 0.000298
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
PRIMARY | | | | | | | | Impossible WHERE noticed after reading const tables |
DERIVED | | | | | | | | no matching row in const table |
DERIVED | | | | | | | | no matching row in const table |
DERIVED | | | | | | | | no matching row in const table |
UNION | | | | | | | | no matching row in const table |
DERIVED | | | | | | | | no matching row in const table |
UNION RESULT | <union3,5> | ALL | | | | | | |
SELECT session_activity.*
,
user.*,
user_profile.*,
user_option.*
FROM xf_session_activity AS session_activity
LEFT JOIN xf_user AS user ON
(user.user_id = session_activity.user_id)
LEFT JOIN xf_user_profile AS user_profile ON
(user_profile.user_id = user.user_id)
LEFT JOIN xf_user_option AS user_option ON
(user_option.user_id = user.user_id)
WHERE (session_activity.view_date > 1714808132)
ORDER BY session_activity.view_date DESC
Run Time: 0.001143
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | session_activity | ALL | view_date | | | | 19 | Using where; Using filesort |
SIMPLE | user | eq_ref | PRIMARY | PRIMARY | 4 | XENFORO.session_activity.user_id | 1 | |
SIMPLE | user_profile | eq_ref | PRIMARY | PRIMARY | 4 | XENFORO.user.user_id | 1 | |
SIMPLE | user_option | eq_ref | PRIMARY | PRIMARY | 4 | XENFORO.user.user_id | 1 | |
INSERT INTO `xf_session` (`session_id`, `session_data`, `expiry_date`) VALUES (?, ?, ?)
Params: e02ff4771c8664bf579129fe5cf06085, a:7:{s:12:"sessionStart";i:1714809032;s:2:"ip";i:58797404;s:9:"userAgent";s:103:"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)";s:7:"robotId";s:0:"";s:16:"previousActivity";i:0;s:10:"isIpBanned";b:0;s:13:"isDiscouraged";b:0;}, 1714812632
Run Time: 0.000206
INSERT INTO xf_session_activity
(user_id, unique_key, ip, controller_name, controller_action, view_state, params, view_date, robot_key)
VALUES
(?, ?, ?, ?, ?, ?, ?, ?, ?)
ON DUPLICATE KEY UPDATE
ip = VALUES(ip),
controller_name = VALUES(controller_name),
controller_action = VALUES(controller_action),
view_state = VALUES(view_state),
params = VALUES(params),
view_date = VALUES(view_date),
robot_key = VALUES(robot_key)
Params: 0, 58797404, 58797404, MyNewsFeed_ControllerPublic_RecentActivity, Index, valid, , 1714809032,
Run Time: 0.000149
SELECT page_name FROM EWRcarta_pages WHERE page_slug = 'index'
Run Time: 0.000182
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | EWRcarta_pages | const | page_slug | page_slug | 302 | const | 1 | |
SELECT title, template_compiled
FROM xf_template_compiled
WHERE title IN ('page_nav', 'ragtek_invite_visitortab', 'news_feed_page_my', 'EWRcarta_Navtabs', 'PAGE_CONTAINER')
AND style_id = ?
AND language_id = ?
Params: 1, 3
Run Time: 0.019358
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_template_compiled | range | PRIMARY | PRIMARY | 160 | | 4 | Using where |
SELECT title, phrase_text
FROM xf_phrase_compiled
WHERE language_id = ?
AND title IN ('wiki')
Params: 3
Run Time: 0.000214
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_phrase_compiled | const | PRIMARY | PRIMARY | 81 | const,const | 1 | |
SELECT title, template_compiled
FROM xf_template_compiled
WHERE title IN ('bbm_js')
AND style_id = ?
AND language_id = ?
Params: 1, 3
Run Time: 0.000227
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_template_compiled | const | PRIMARY | PRIMARY | 160 | const,const,const | 1 | |
SELECT xf_user.user_id, xf_user.username, xf_user.email, fam.field_value AS lname, name_fio.field_value AS fname, otch_fio.field_value AS mname
FROM ((xf_user LEFT JOIN (SELECT user_id, field_id, field_value FROM xf_user_field_value WHERE field_id="fam") AS fam ON xf_user.user_id = fam.user_id) LEFT JOIN (SELECT user_id, field_id, field_value FROM xf_user_field_value WHERE field_id="name_fio") AS name_fio ON xf_user.user_id = name_fio.user_id) LEFT JOIN (SELECT user_id, field_id, field_value FROM xf_user_field_value WHERE field_id="otch_fio") AS otch_fio ON xf_user.user_id = otch_fio.user_id
WHERE
(
xf_user.user_id In (
SELECT user_id FROM xf_user_group_relation WHERE user_group_id In (6)
)
)
And (
xf_user.user_id Not In (
SELECT xf_user_field_value.user_id FROM xf_user_field_value
WHERE (xf_user_field_value.field_id="idhtline") AND (Length(Trim(field_value))>0)
)
or
xf_user.user_id Not In (
SELECT xf_user_field_value.user_id FROM xf_user_field_value
WHERE (xf_user_field_value.field_id="uid_ht_line") AND (Length(Trim(field_value))>0)
)
)
Run Time: 0.008788
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
PRIMARY | xf_user | ALL | | | | | 378 | Using where |
PRIMARY | <derived2> | ALL | | | | | 369 | |
PRIMARY | <derived3> | ALL | | | | | 369 | |
PRIMARY | <derived4> | ALL | | | | | 369 | |
DEPENDENT SUBQUERY | xf_user_field_value | unique_subquery | PRIMARY,field_id | PRIMARY | 81 | func,const | 1 | Using where |
DEPENDENT SUBQUERY | xf_user_field_value | unique_subquery | PRIMARY,field_id | PRIMARY | 81 | func,const | 1 | Using where |
DEPENDENT SUBQUERY | xf_user_group_relation | unique_subquery | PRIMARY,user_group_id_is_primary | PRIMARY | 8 | func,const | 1 | Using index; Using where |
DERIVED | xf_user_field_value | ref | field_id | field_id | 77 | | 377 | Using where |
DERIVED | xf_user_field_value | ref | field_id | field_id | 77 | | 371 | Using where |
DERIVED | xf_user_field_value | ref | field_id | field_id | 77 | | 379 | Using where |