Query | Affected | Num. rows | Took (ms) | Actions |
---|
SELECT `TariffCode`.`id`, `TariffCode`.`heading`, `TariffCode`.`int_heading`, `TariffCode`.`description`, `TariffCode`.`parent_id`, `TariffCode`.`lft`, `TariffCode`.`rght`, (CONCAT(`TariffCode`.`heading`, ': ', `TariffCode`.`description`)) AS `TariffCode__name`, (IF(`TariffCode`.`rght` - `TariffCode`.`lft` = 1, 0, 1)) AS `TariffCode__hasChildren`, `Parent`.`id`, `Parent`.`heading`, `Parent`.`int_heading`, `Parent`.`description`, `Parent`.`parent_id`, `Parent`.`lft`, `Parent`.`rght`, (CONCAT(`TariffCode`.`heading`, ': ', `TariffCode`.`description`)) AS `Parent__name`, (IF(`TariffCode`.`rght` - `TariffCode`.`lft` = 1, 0, 1)) AS `Parent__hasChildren` FROM `tmsa_roo`.`tariff_codes` AS `TariffCode` LEFT JOIN `tmsa_roo`.`tariff_codes` AS `Parent` ON (`TariffCode`.`parent_id` = `Parent`.`id`) WHERE `TariffCode`.`heading` = '6504' ORDER BY `TariffCode`.`lft` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `TariffCode`.`lft`, `TariffCode`.`rght` FROM `tmsa_roo`.`tariff_codes` AS `TariffCode` WHERE `TariffCode`.`id` = 'de56680d-c58c-11df-9bb7-0be149cb1d31' ORDER BY `TariffCode`.`lft` ASC LIMIT 1 | 1 | 1 | 0 | |
SELECT `TariffCode`.`id`, `TariffCode`.`heading`, `TariffCode`.`int_heading`, `TariffCode`.`description`, `TariffCode`.`parent_id`, `TariffCode`.`lft`, `TariffCode`.`rght`, (CONCAT(`TariffCode`.`heading`, ': ', `TariffCode`.`description`)) AS `TariffCode__name`, (IF(`TariffCode`.`rght` - `TariffCode`.`lft` = 1, 0, 1)) AS `TariffCode__hasChildren` FROM `tmsa_roo`.`tariff_codes` AS `TariffCode` WHERE 1 = 1 AND `TariffCode`.`lft` <= 7625 AND `TariffCode`.`rght` >= 7628 ORDER BY `TariffCode`.`lft` asc | 3 | 3 | 4 | maybe slow |
SELECT `Treaty`.`id`, `Treaty`.`name` FROM `tmsa_roo`.`treaties` AS `Treaty` WHERE 1 = 1 ORDER BY `id` ASC | 4 | 4 | 0 | |
SELECT `TariffCode`.`heading`, `TariffCode`.`description` FROM `tmsa_roo`.`tariff_codes` AS `TariffCode` WHERE 1 = 1 ORDER BY `TariffCode`.`lft` ASC | 6398 | 6398 | 4 | |
SELECT `Treaty`.`name`, `Rule`.`id`, `Rule`.`hs_range`, `Rule`.`hs_start`, `Rule`.`hs_end`, `Rule`.`exception`, `Rule`.`main_rule`, `Treaty`.`id` FROM `tmsa_roo`.`rules` AS `Rule` LEFT JOIN `tmsa_roo`.`treaties` AS `Treaty` ON (`Rule`.`treaty_id` = `Treaty`.`id`) WHERE `Rule`.`hs_start` <= 650499 AND `Rule`.`hs_end` >= 650400 ORDER BY `Treaty`.`id` ASC, `Rule`.`order` ASC | 6 | 6 | 1 | maybe slow |
SELECT `AvailableRule`.`id`, `AvailableRule`.`rule_id`, `AvailableRule`.`rule_text_id`, `AvailableRule`.`wholly_produced`, `AvailableRule`.`cif`, `AvailableRule`.`value_added`, `AvailableRule`.`tariff_change`, `AvailableRule`.`exception`, `AvailableRule`.`process`, `AvailableRule`.`ex_works`, `AvailableRule`.`weight`, `AvailableRule`.`no_rule`, `AvailableRule`.`alternative` FROM `tmsa_roo`.`available_rules` AS `AvailableRule` WHERE `AvailableRule`.`rule_id` IN (164, 162, 563, 1002, 1004, 1502) | 14 | 14 | 0 | |
SELECT `RuleText`.`id`, `RuleText`.`text` FROM `tmsa_roo`.`rule_texts` AS `RuleText` WHERE `RuleText`.`id` = 1 | 1 | 1 | 0 | |
SELECT `RuleText`.`id`, `RuleText`.`text` FROM `tmsa_roo`.`rule_texts` AS `RuleText` WHERE `RuleText`.`id` = 2 | 1 | 1 | 0 | |
SELECT `RuleText`.`id`, `RuleText`.`text` FROM `tmsa_roo`.`rule_texts` AS `RuleText` WHERE `RuleText`.`id` = 76 | 1 | 1 | 0 | |
SELECT `RuleText`.`id`, `RuleText`.`text` FROM `tmsa_roo`.`rule_texts` AS `RuleText` WHERE `RuleText`.`id` = 1 | 1 | 1 | 0 | |
SELECT `RuleText`.`id`, `RuleText`.`text` FROM `tmsa_roo`.`rule_texts` AS `RuleText` WHERE `RuleText`.`id` = 2 | 1 | 1 | 0 | |
SELECT `RuleText`.`id`, `RuleText`.`text` FROM `tmsa_roo`.`rule_texts` AS `RuleText` WHERE `RuleText`.`id` = 3 | 1 | 1 | 0 | |
SELECT `RuleText`.`id`, `RuleText`.`text` FROM `tmsa_roo`.`rule_texts` AS `RuleText` WHERE `RuleText`.`id` = 150 | 1 | 1 | 0 | |
SELECT `RuleText`.`id`, `RuleText`.`text` FROM `tmsa_roo`.`rule_texts` AS `RuleText` WHERE `RuleText`.`id` = 1 | 1 | 1 | 0 | |
SELECT `RuleText`.`id`, `RuleText`.`text` FROM `tmsa_roo`.`rule_texts` AS `RuleText` WHERE `RuleText`.`id` = 2 | 1 | 1 | 0 | |
SELECT `RuleText`.`id`, `RuleText`.`text` FROM `tmsa_roo`.`rule_texts` AS `RuleText` WHERE `RuleText`.`id` = 416 | 1 | 1 | 0 | |
SELECT `RuleText`.`id`, `RuleText`.`text` FROM `tmsa_roo`.`rule_texts` AS `RuleText` WHERE `RuleText`.`id` = 1 | 1 | 1 | 0 | |
SELECT `RuleText`.`id`, `RuleText`.`text` FROM `tmsa_roo`.`rule_texts` AS `RuleText` WHERE `RuleText`.`id` = 2 | 1 | 1 | 0 | |
SELECT `RuleText`.`id`, `RuleText`.`text` FROM `tmsa_roo`.`rule_texts` AS `RuleText` WHERE `RuleText`.`id` = 418 | 1 | 1 | 0 | |
SELECT `RuleText`.`id`, `RuleText`.`text` FROM `tmsa_roo`.`rule_texts` AS `RuleText` WHERE `RuleText`.`id` = 569 | 1 | 1 | 0 | |
SELECT `TariffCode`.`id`, `TariffCode`.`heading`, `TariffCode`.`int_heading`, `TariffCode`.`description`, `TariffCode`.`parent_id`, `TariffCode`.`lft`, `TariffCode`.`rght`, (CONCAT(`TariffCode`.`heading`, ': ', `TariffCode`.`description`)) AS `TariffCode__name`, (IF(`TariffCode`.`rght` - `TariffCode`.`lft` = 1, 0, 1)) AS `TariffCode__hasChildren` FROM `tmsa_roo`.`tariff_codes` AS `TariffCode` WHERE `TariffCode`.`heading` = '6504' ORDER BY `TariffCode`.`lft` ASC LIMIT 1 | 1 | 1 | 0 | |
SELECT `TariffCode`.`heading`, `TariffCode`.`int_heading`, `TariffCode`.`description` FROM `tmsa_roo`.`tariff_codes` AS `TariffCode` WHERE `TariffCode`.`parent_id` = 'de56680d-c58c-11df-9bb7-0be149cb1d31' ORDER BY `TariffCode`.`lft` ASC | 1 | 1 | 0 | |