Database Queries

Всего 13 записи.
TimeDurationTypeDuplicatedQuery
   
04:33:37.9670.6 msSELECT1
SELECT * FROM `news_groups` WHERE (`status`=1) AND (`alias`='electro_news_')

04:33:37.9680.6 msSHOW1
SHOW FULL COLUMNS FROM `news_groups`
04:33:37.9690.3 msSELECT1
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.97317.0 msSELECT1
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.9902.4 msSELECT1
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.9930.4 msSHOW1
SHOW FULL COLUMNS FROM `news`
04:33:37.9940.2 msSELECT1
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.9950.2 msSELECT1
SELECT * FROM `news_group_links` WHERE `news_id` IN (315, 314, 312, 311, 310, 309, 308, 307, 305, 304)

04:33:37.9950.4 msSHOW1
SHOW FULL COLUMNS FROM `news_group_links`
04:33:37.9960.2 msSELECT1
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.9960.1 msSELECT1
SELECT * FROM `news_groups` `g` WHERE `id`=4

04:33:37.9961.5 msSELECT1
SELECT DISTINCT year(start_publish) FROM `news` ORDER BY `start_publish` DESC

04:33:38.0050.3 msSELECT1
SELECT `id`, `parent_id` AS `pid`, `alias`, `title_for_menu` AS `title` FROM `pages` WHERE (`status`=1) AND (`menu`=1) ORDER BY `sort`