Time | Duration | Type | Duplicated | Query |
---|---|---|---|---|
04:33:37.967 | 0.6 ms | SELECT | 1 | SELECT * FROM `news_groups` WHERE (`status`=1) AND (`alias`='electro_news_') |
04:33:37.968 | 0.6 ms | SHOW | 1 | SHOW FULL COLUMNS FROM `news_groups` |
04:33:37.969 | 0.3 ms | SELECT | 1 | SELECT
`kcu`.`CONSTRAINT_NAME` AS `constraint_name`,
`kcu`.`COLUMN_NAME` AS `column_name`,
`kcu`.`REFERENCED_TABLE_NAME` AS `referenced_table_name`,
`kcu`.`REFERENCED_COLUMN_NAME` AS `referenced_column_name`
FROM `information_schema`.`REFERENTIAL_CONSTRAINTS` AS `rc`
JOIN `information_schema`.`KEY_COLUMN_USAGE` AS `kcu` ON
(
`kcu`.`CONSTRAINT_CATALOG` = `rc`.`CONSTRAINT_CATALOG` OR
(`kcu`.`CONSTRAINT_CATALOG` IS NULL AND `rc`.`CONSTRAINT_CATALOG` IS NULL)
) AND
`kcu`.`CONSTRAINT_SCHEMA` = `rc`.`CONSTRAINT_SCHEMA` AND
`kcu`.`CONSTRAINT_NAME` = `rc`.`CONSTRAINT_NAME`
WHERE `rc`.`CONSTRAINT_SCHEMA` = database() AND `kcu`.`TABLE_SCHEMA` = database()
AND `rc`.`TABLE_NAME` = 'news_groups' AND `kcu`.`TABLE_NAME` = 'news_groups' |
04:33:37.973 | 17.0 ms | SELECT | 1 | SELECT COUNT(*) FROM (SELECT `n`.* FROM `news` `n` LEFT JOIN `news_group_links` ON `n`.`id` = `news_group_links`.`news_id` LEFT JOIN `news_groups` `g` ON `news_group_links`.`news_group_id` = `g`.`id` WHERE (`n`.`status`=1) AND (year(start_publish) = '2023') AND (`g`.`alias`='electro_news_') GROUP BY `n`.`id` ORDER BY `n`.`fixed` DESC, `n`.`start_publish` DESC) `c` |
04:33:37.990 | 2.4 ms | SELECT | 1 | SELECT `n`.* FROM `news` `n` LEFT JOIN `news_group_links` ON `n`.`id` = `news_group_links`.`news_id` LEFT JOIN `news_groups` `g` ON `news_group_links`.`news_group_id` = `g`.`id` WHERE (`n`.`status`=1) AND (year(start_publish) = '2023') AND (`g`.`alias`='electro_news_') GROUP BY `n`.`id` ORDER BY `n`.`fixed` DESC, `n`.`start_publish` DESC LIMIT 10 |
04:33:37.993 | 0.4 ms | SHOW | 1 | SHOW FULL COLUMNS FROM `news` |
04:33:37.994 | 0.2 ms | SELECT | 1 | SELECT
`kcu`.`CONSTRAINT_NAME` AS `constraint_name`,
`kcu`.`COLUMN_NAME` AS `column_name`,
`kcu`.`REFERENCED_TABLE_NAME` AS `referenced_table_name`,
`kcu`.`REFERENCED_COLUMN_NAME` AS `referenced_column_name`
FROM `information_schema`.`REFERENTIAL_CONSTRAINTS` AS `rc`
JOIN `information_schema`.`KEY_COLUMN_USAGE` AS `kcu` ON
(
`kcu`.`CONSTRAINT_CATALOG` = `rc`.`CONSTRAINT_CATALOG` OR
(`kcu`.`CONSTRAINT_CATALOG` IS NULL AND `rc`.`CONSTRAINT_CATALOG` IS NULL)
) AND
`kcu`.`CONSTRAINT_SCHEMA` = `rc`.`CONSTRAINT_SCHEMA` AND
`kcu`.`CONSTRAINT_NAME` = `rc`.`CONSTRAINT_NAME`
WHERE `rc`.`CONSTRAINT_SCHEMA` = database() AND `kcu`.`TABLE_SCHEMA` = database()
AND `rc`.`TABLE_NAME` = 'news' AND `kcu`.`TABLE_NAME` = 'news' |
04:33:37.995 | 0.2 ms | SELECT | 1 | SELECT * FROM `news_group_links` WHERE `news_id` IN (315, 314, 312, 311, 310, 309, 308, 307, 305, 304) |
04:33:37.995 | 0.4 ms | SHOW | 1 | SHOW FULL COLUMNS FROM `news_group_links` |
04:33:37.996 | 0.2 ms | SELECT | 1 | SELECT
`kcu`.`CONSTRAINT_NAME` AS `constraint_name`,
`kcu`.`COLUMN_NAME` AS `column_name`,
`kcu`.`REFERENCED_TABLE_NAME` AS `referenced_table_name`,
`kcu`.`REFERENCED_COLUMN_NAME` AS `referenced_column_name`
FROM `information_schema`.`REFERENTIAL_CONSTRAINTS` AS `rc`
JOIN `information_schema`.`KEY_COLUMN_USAGE` AS `kcu` ON
(
`kcu`.`CONSTRAINT_CATALOG` = `rc`.`CONSTRAINT_CATALOG` OR
(`kcu`.`CONSTRAINT_CATALOG` IS NULL AND `rc`.`CONSTRAINT_CATALOG` IS NULL)
) AND
`kcu`.`CONSTRAINT_SCHEMA` = `rc`.`CONSTRAINT_SCHEMA` AND
`kcu`.`CONSTRAINT_NAME` = `rc`.`CONSTRAINT_NAME`
WHERE `rc`.`CONSTRAINT_SCHEMA` = database() AND `kcu`.`TABLE_SCHEMA` = database()
AND `rc`.`TABLE_NAME` = 'news_group_links' AND `kcu`.`TABLE_NAME` = 'news_group_links' |
04:33:37.996 | 0.1 ms | SELECT | 1 | SELECT * FROM `news_groups` `g` WHERE `id`=4 |
04:33:37.996 | 1.5 ms | SELECT | 1 | SELECT DISTINCT year(start_publish) FROM `news` ORDER BY `start_publish` DESC |
04:33:38.005 | 0.3 ms | SELECT | 1 | SELECT `id`, `parent_id` AS `pid`, `alias`, `title_for_menu` AS `title` FROM `pages` WHERE (`status`=1) AND (`menu`=1) ORDER BY `sort` |