SELECT cache_value
FROM xf_permission_combination
WHERE permission_combination_id = ?
Params: 1
Run Time: 0.000168
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_permission_combination | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SELECT COUNT(*) AS total FROM (
SELECT xf_thread.thread_id
FROM EWRporta2_articles
INNER JOIN xf_thread ON (xf_thread.thread_id = EWRporta2_articles.thread_id)
LEFT JOIN xf_user ON (xf_user.user_id = xf_thread.user_id)
WHERE EWRporta2_articles.article_date < ?
AND xf_thread.discussion_state = 'visible'
AND (EWRporta2_articles.article_exclude = '0' OR EWRporta2_articles.article_exclude IS NULL)
GROUP BY xf_thread.thread_id
) q
Params: 1659984845
Run Time: 0.006087
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
PRIMARY | <derived2> | ALL | | | | | 3915 | |
DERIVED | EWRporta2_articles | index | PRIMARY,article_date | PRIMARY | 4 | | 3915 | Using where |
DERIVED | xf_thread | eq_ref | PRIMARY | PRIMARY | 4 | vetxray_vetx.EWRporta2_articles.thread_id | 1 | Using where |
SELECT COUNT(*) AS total FROM (
SELECT xf_thread.thread_id
FROM xf_thread
LEFT JOIN EWRporta2_articles ON (EWRporta2_articles.thread_id = xf_thread.thread_id)
LEFT JOIN xf_user ON (xf_user.user_id = xf_thread.user_id)
WHERE xf_thread.post_date < ?
AND xf_thread.discussion_state = 'visible'
AND xf_thread.node_id IN ('2', '5', '6', '8', '10', '9')
AND EWRporta2_articles.article_date IS NULL
AND (EWRporta2_articles.article_exclude = '0' OR EWRporta2_articles.article_exclude IS NULL)
GROUP BY xf_thread.thread_id
) q
Params: 1659984845
Run Time: 0.012566
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
PRIMARY | <derived2> | ALL | | | | | 5255 | |
DERIVED | xf_thread | index | node_id_last_post_date,node_id_sticky_state_last_post,post_date | PRIMARY | 4 | | 8035 | Using where |
DERIVED | EWRporta2_articles | eq_ref | PRIMARY | PRIMARY | 4 | vetxray_vetx.xf_thread.thread_id | 1 | Using where; Not exists |
(
SELECT EWRporta2_articles.*, EWRporta2_authors.*, xf_forum.*, xf_thread.*, xf_user.*, xf_post.message, xf_post.attach_count,
IF(NOT ISNULL(xf_user.user_id), xf_user.username, xf_thread.username) AS username,
'0' AS sticky_article, xf_thread.post_date AS order_date
FROM xf_thread
INNER JOIN xf_forum ON (xf_forum.node_id = xf_thread.node_id)
INNER JOIN xf_post ON (xf_post.post_id = xf_thread.first_post_id)
LEFT JOIN xf_user ON (xf_user.user_id = xf_thread.user_id)
LEFT JOIN EWRporta2_authors ON (EWRporta2_authors.user_id = xf_thread.user_id)
LEFT JOIN EWRporta2_articles ON (EWRporta2_articles.thread_id = xf_thread.thread_id)
WHERE xf_thread.post_date < ?
AND xf_thread.discussion_state = 'visible'
AND xf_thread.node_id IN ('2', '5', '6', '8', '10', '9')
AND EWRporta2_articles.article_date IS NULL
AND (EWRporta2_articles.article_exclude = '0' OR EWRporta2_articles.article_exclude IS NULL)
GROUP BY xf_thread.thread_id
ORDER BY xf_thread.post_date DESC
) UNION ALL (
SELECT EWRporta2_articles.*, EWRporta2_authors.*, xf_forum.*, xf_thread.*, xf_user.*, xf_post.message, xf_post.attach_count,
IF(NOT ISNULL(xf_user.user_id), xf_user.username, xf_thread.username) AS username,
EWRporta2_articles.article_sticky AS sticky_article, EWRporta2_articles.article_date AS order_date
FROM EWRporta2_articles
INNER JOIN xf_thread ON (xf_thread.thread_id = EWRporta2_articles.thread_id)
INNER JOIN xf_forum ON (xf_forum.node_id = xf_thread.node_id)
INNER JOIN xf_post ON (xf_post.post_id = xf_thread.first_post_id)
LEFT JOIN xf_user ON (xf_user.user_id = xf_thread.user_id)
LEFT JOIN EWRporta2_authors ON (EWRporta2_authors.user_id = xf_thread.user_id)
WHERE EWRporta2_articles.article_date < ?
AND xf_thread.discussion_state = 'visible'
AND (EWRporta2_articles.article_exclude = '0' OR EWRporta2_articles.article_exclude IS NULL)
GROUP BY xf_thread.thread_id
ORDER BY EWRporta2_articles.article_sticky DESC, EWRporta2_articles.article_date DESC
)
ORDER BY sticky_article DESC, order_date DESC
LIMIT ?, ?
Params: 1659984845, 1659984845, 7880, 10
Run Time: 0.215630
SELECT EWRporta2_catlinks.*, EWRporta2_categories.*, xf_user.*
FROM EWRporta2_catlinks
INNER JOIN EWRporta2_categories ON (EWRporta2_categories.category_id = EWRporta2_catlinks.category_id)
LEFT JOIN xf_user ON (xf_user.user_id = EWRporta2_catlinks.user_id)
WHERE EWRporta2_catlinks.thread_id IN (426, 425, 424, 423, 422, 421, 420, 419, 418, 417)
ORDER BY EWRporta2_categories.category_name
Run Time: 0.000723
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | EWRporta2_catlinks | range | thread_id | thread_id | 4 | | 10 | Using index condition; Using temporary; Using filesort |
SIMPLE | xf_user | eq_ref | PRIMARY | PRIMARY | 4 | vetxray_vetx.EWRporta2_catlinks.user_id | 1 | |
SIMPLE | EWRporta2_categories | ALL | PRIMARY | | | | 5 | Using where; Using join buffer (flat, BNL join) |
SELECT cache_value
FROM xf_permission_cache_content
WHERE permission_combination_id = ?
AND content_type = ?
AND content_id = ?
Params: 1, node, 5
Run Time: 0.000110
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_permission_cache_content | const | PRIMARY | PRIMARY | 35 | const,const,const | 1 | |
INSERT INTO `xf_session` (`session_id`, `session_data`, `expiry_date`) VALUES (?, ?, ?)
Params: b71fc1823f71e52e4304ee90a796f378, , 1659988445
Run Time: 0.000111
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, , , EWRporta2_ControllerPublic_Articles, Index, valid, , 1659984845,
Run Time: 0.000061
SELECT *
FROM EWRporta2_layouts
WHERE (layout_template = ?
)
AND active = 1
ORDER BY layout_priority ASC
Params: EWRporta2_ArticleList
Run Time: 0.000210
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | EWRporta2_layouts | ref | layout_template | layout_template | 302 | const | 1 | Using index condition; Using where; Using filesort |
SELECT EWRporta2_widlinks.*, EWRporta2_widgets.widget_values, EWRporta2_widopts.widopt_values,
IF(EWRporta2_widopts.widopt_id, EWRporta2_widopts.widopt_id, 0) AS widopt_id,
IF(EWRporta2_widopts.widopt_id, EWRporta2_widopts.locked, EWRporta2_widgets.locked) AS locked,
IF(EWRporta2_widopts.widopt_id, EWRporta2_widopts.display, EWRporta2_widgets.display) AS display,
IF(EWRporta2_widopts.widopt_id, EWRporta2_widopts.groups, EWRporta2_widgets.groups) AS groups,
IF(EWRporta2_widopts.widopt_id, EWRporta2_widopts.ctime, EWRporta2_widgets.ctime) AS ctime,
IF(EWRporta2_widopts.widopt_id, EWRporta2_widopts.cdate, EWRporta2_widgets.cdate) AS cdate,
IF(EWRporta2_widopts.widopt_id, EWRporta2_widopts.cache, EWRporta2_widgets.cache) AS cache
FROM EWRporta2_widlinks
INNER JOIN EWRporta2_widgets ON (EWRporta2_widgets.widget_id = EWRporta2_widlinks.widget_id)
LEFT JOIN EWRporta2_widopts ON (EWRporta2_widopts.widopt_id = EWRporta2_widlinks.widopt_id)
WHERE layout_id = ?
AND EWRporta2_widgets.active = 1
ORDER by widlink_order
Params: article_list
Run Time: 0.000556
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | EWRporta2_widgets | ALL | PRIMARY | | | | 9 | Using where; Using temporary; Using filesort |
SIMPLE | EWRporta2_widlinks | ref | layout_id,widget_id | widget_id | 302 | vetxray_vetx.EWRporta2_widgets.widget_id | 1 | Using where |
SIMPLE | EWRporta2_widopts | eq_ref | PRIMARY | PRIMARY | 4 | vetxray_vetx.EWRporta2_widlinks.widopt_id | 1 | |
SELECT session_activity.*
,
user.*
FROM xf_session_activity AS session_activity
LEFT JOIN xf_user AS user ON
(user.user_id = session_activity.user_id)
WHERE (session_activity.view_date > 1659714845)
ORDER BY session_activity.view_date DESC
Run Time: 0.001717
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | session_activity | range | view_date | view_date | 4 | | 649 | Using where |
SIMPLE | user | eq_ref | PRIMARY | PRIMARY | 4 | vetxray_vetx.session_activity.user_id | 1 | |
SELECT thread.*
,
user.*, IF(user.username IS NULL, thread.username, user.username) AS username,
last_post_user.gender AS last_post_gender,
last_post_user.avatar_date AS last_post_avatar_date,
last_post_user.gravatar AS last_post_gravatar,
IF(last_post_user.username IS NULL, thread.last_post_username, last_post_user.username) AS last_post_username,
node.title AS node_title, node.node_name,
forum.*,
forum.last_post_id AS forum_last_post_id,
forum.last_post_date AS forum_last_post_date,
forum.last_post_user_id AS forum_last_post_user_id,
forum.last_post_username AS forum_last_post_username,
forum.last_thread_title AS forum_last_thread_title,
thread.last_post_id,
thread.last_post_date,
thread.last_post_user_id,
thread.last_post_username,
NULL AS thread_read_date,
0 AS thread_is_watched,
0 AS user_post_count,
permission.cache_value AS node_permission_cache
FROM xf_thread AS thread
LEFT JOIN xf_user AS user ON
(user.user_id = thread.user_id)
LEFT JOIN xf_user AS last_post_user ON
(last_post_user.user_id = thread.last_post_user_id)
LEFT JOIN xf_node AS node ON
(node.node_id = thread.node_id)
LEFT JOIN xf_forum AS forum ON
(forum.node_id = thread.node_id)
LEFT JOIN xf_permission_cache_content AS permission
ON (permission.permission_combination_id = 1
AND permission.content_type = 'node'
AND permission.content_id = thread.node_id)
WHERE (thread.discussion_type <> 'redirect') AND (thread.discussion_state IN ('visible')) AND (thread.last_post_date > 1656269645) AND (forum.find_new = 1) AND thread.node_id IN ('2', '5', '6', '8', '10', '9')
ORDER BY thread.last_post_date DESC
LIMIT 40
Run Time: 0.002752
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | thread | range | node_id_last_post_date,node_id_sticky_state_last_post,last_post_date | last_post_date | 4 | | 130 | Using index condition; Using where; Using temporary; Using filesort |
SIMPLE | user | eq_ref | PRIMARY | PRIMARY | 4 | vetxray_vetx.thread.user_id | 1 | |
SIMPLE | last_post_user | eq_ref | PRIMARY | PRIMARY | 4 | vetxray_vetx.thread.last_post_user_id | 1 | |
SIMPLE | forum | ALL | PRIMARY | | | | 6 | Using where; Using join buffer (flat, BNL join) |
SIMPLE | node | eq_ref | PRIMARY | PRIMARY | 4 | vetxray_vetx.thread.node_id | 1 | |
SIMPLE | permission | eq_ref | PRIMARY | PRIMARY | 35 | const,const,vetxray_vetx.thread.node_id | 1 | Using where |
SELECT attachment.*,
data.filename, data.file_size, data.file_hash, data.file_path, data.width, data.height, data.thumbnail_width, data.thumbnail_height
FROM xf_attachment AS attachment
INNER JOIN xf_attachment_data AS data ON
(data.data_id = attachment.data_id)
WHERE attachment.content_type = ?
AND attachment.content_id IN (448)
ORDER BY attachment.content_id, attachment.attach_date
Params: post
Run Time: 0.000274
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | attachment | ref | content_type_id_date | content_type_id_date | 31 | const,const | 1 | Using index condition; Using where |
SIMPLE | data | eq_ref | PRIMARY | PRIMARY | 4 | vetxray_vetx.attachment.data_id | 1 | |
SELECT title, template_compiled
FROM xf_template_compiled
WHERE title IN ('page_nav', 'bb_code_tag_code', 'bb_code_tag_php', 'bb_code_tag_html', 'bb_code_tag_quote', 'bb_code_tag_attach', 'bb_code_tag_spoiler', 'EWRwidget_RawHtml', 'EWRwidget_UsersOnline', 'EWRwidget_Threads', 'EWRporta2_ArticleList', 'EWRporta2_Navtabs', 'dark_postrating', 'dark_postrating_member', 'dark_postrating_member_totals', 'message_user_info_extra', 'user_criteria_content', 'thread_list_item_icon_key', 'dark_postrating_member_notable_tabs', 'dark_postrating_account_wrapper', 'dark_postrating_navigation_visitor_tab', 'dark_postrating_visitor_panel', 'dark_postrating_member_card', 'dark_postrating_member_info', 'dark_postrating_message_user_info', 'PAGE_CONTAINER')
AND style_id = ?
AND language_id = ?
Params: 1, 1
Run Time: 0.000294
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_template_compiled | range | PRIMARY | PRIMARY | 60 | | 26 | Using where |