| Query | Affected | Num. rows | Took (ms) | Actions |
|---|
| SELECT COUNT(*) AS `count` FROM `giuvaier_d`.`diamonds` AS `Diamond` WHERE `Diamond`.`id` = 278842 | 1 | 1 | 0 | |
| SELECT `Diamond`.`id`, `Diamond`.`sku`, `Diamond`.`type_id`, `Diamond`.`lab_id`, `Diamond`.`report`, `Diamond`.`source_id`, `Diamond`.`xsku`, `Diamond`.`is_stock`, `Diamond`.`is_available`, `Diamond`.`is_visible`, `Diamond`.`is_hidden`, `Diamond`.`wdays`, `Diamond`.`xorder_id`, `Diamond`.`product_id`, `Diamond`.`shape_id`, `Diamond`.`carats`, `Diamond`.`color_id`, `Diamond`.`clarity_id`, `Diamond`.`cut_id`, `Diamond`.`polish_id`, `Diamond`.`symmetry_id`, `Diamond`.`fluorescence_id`, `Diamond`.`length`, `Diamond`.`width`, `Diamond`.`height`, `Diamond`.`depth_percent`, `Diamond`.`table_percent`, `Diamond`.`has_photo`, `Diamond`.`photo`, `Diamond`.`has_video`, `Diamond`.`video`, `Diamond`.`has_certi`, `Diamond`.`certi`, `Diamond`.`contents`, `Diamond`.`created`, `Diamond`.`timestamp`, (`Diamond`.`sku`) AS `Diamond__display_field`, ((SELECT COUNT(*) + 1 FROM diamonds Diamond_Diamonds WHERE `Diamond`.`xorder_id` = `Diamond_Diamonds`.`xorder_id` AND `Diamond`.`sku` > `Diamond_Diamonds`.`sku`)) AS `Diamond__xorder_pos`, (`Diamond`.`price`) AS `Diamond__price`, (`Diamond`.`cost`) AS `Diamond__cost`, ((SELECT `Diamond_Xorder`.`exchange_rate` FROM xorders Diamond_Xorder WHERE `Diamond`.`xorder_id` = `Diamond_Xorder`.`id`)) AS `Diamond__exchange_rate`, (1) AS `Diamond__profit`, (1) AS `Diamond__profit_percent` FROM `giuvaier_d`.`diamonds` AS `Diamond` WHERE `Diamond`.`id` = 278842 ORDER BY `Diamond`.`id` DESC LIMIT 1 | 1 | 1 | 1 | |
| SELECT `Source`.`id`, (`Source`.`name`) AS `Source__display_field` FROM `giuvaier_d`.`sources` AS `Source` WHERE 1 = 1 ORDER BY `Source`.`id` DESC | 15 | 15 | 0 | |
| SELECT `Xorder`.`id`, (CONCAT(`Xorder`.`date`, " ", (SELECT `Xorder_Partner`.`name` FROM partners Xorder_Partner WHERE `Xorder`.`partner_id` = `Xorder_Partner`.`id`))) AS `Xorder__display_field` FROM `giuvaier_d`.`xorders` AS `Xorder` WHERE 1 = 1 ORDER BY (CONCAT(`Xorder`.`date`, " ", (SELECT `Xorder_Partner`.`name` FROM partners Xorder_Partner WHERE `Xorder`.`partner_id` = `Xorder_Partner`.`id`))) DESC | 413 | 413 | 5 | |
| SELECT `Product`.`id`, (CONCAT((SELECT TRIM(CONCAT(`Product_Order`.`customer`, " ", `Product_Order`.`last_name`)) FROM orders Product_Order WHERE `Product`.`order_id` = `Product_Order`.`id`), " P#", `Product`.`id`)) AS `Product__display_field` FROM `giuvaier_d`.`products` AS `Product` WHERE (SELECT `tags`.`is_open` FROM orders, tags WHERE `orders`.`id` = `Product`.`order_id` AND `tags`.`id` = `orders`.`tag_id`) = 1 ORDER BY `Product`.`id` DESC | 117 | 117 | 184 | maybe slow |
| SELECT `Shape`.`id`, (`Shape`.`name`) AS `Shape__display_field` FROM `giuvaier_d`.`shapes` AS `Shape` WHERE 1 = 1 ORDER BY `Shape`.`id` DESC | 10 | 10 | 0 | |
| SELECT `Color`.`id`, (`Color`.`code`) AS `Color__display_field` FROM `giuvaier_d`.`colors` AS `Color` WHERE 1 = 1 ORDER BY `Color`.`id` ASC | 8 | 8 | 0 | |
| SELECT `Clarity`.`id`, (`Clarity`.`code`) AS `Clarity__display_field` FROM `giuvaier_d`.`clarities` AS `Clarity` WHERE 1 = 1 ORDER BY `Clarity`.`id` ASC | 8 | 8 | 0 | |
| SELECT `Cut`.`id`, (`Cut`.`code`) AS `Cut__display_field` FROM `giuvaier_d`.`cuts` AS `Cut` WHERE 1 = 1 ORDER BY `Cut`.`id` ASC | 3 | 3 | 0 | |
| SELECT `Polish`.`id`, (`Polish`.`code`) AS `Polish__display_field` FROM `giuvaier_d`.`polishes` AS `Polish` WHERE 1 = 1 ORDER BY `Polish`.`id` DESC | 3 | 3 | 0 | |
| SELECT `Symmetry`.`id`, (`Symmetry`.`code`) AS `Symmetry__display_field` FROM `giuvaier_d`.`symmetries` AS `Symmetry` WHERE 1 = 1 ORDER BY `Symmetry`.`id` DESC | 3 | 3 | 0 | |
| SELECT `Fluorescence`.`id`, (`Fluorescence`.`code`) AS `Fluorescence__display_field` FROM `giuvaier_d`.`fluorescences` AS `Fluorescence` WHERE 1 = 1 ORDER BY `Fluorescence`.`id` DESC | 5 | 5 | 0 | |
| SELECT COUNT(*) open_count FROM orders, tags WHERE orders.tag_id = tags.id AND tags.is_open = 1 AND orders.is_peste = 0; | 1 | 1 | 1 | |
| SELECT COUNT(*) peste_count FROM orders, tags WHERE orders.tag_id = tags.id AND tags.is_open = 1 AND orders.is_peste = 1; | 1 | 1 | 1 | |
| SELECT COUNT(*) flag_count FROM orders, tags WHERE orders.tag_id = tags.id AND tags.is_open = 1 AND orders.is_peste = 2; | 1 | 1 | 1 | |
| SELECT COUNT(*) star_count FROM orders, tags WHERE orders.tag_id = tags.id AND tags.is_open = 1 AND orders.is_peste = 3; | 1 | 1 | 1 | |
| SELECT COUNT(*) wedding_count FROM orders, tags WHERE orders.tag_id = tags.id AND tags.is_open = 1 AND orders.is_peste = 4; | 1 | 1 | 1 | |
| SELECT COUNT(*) unlock_count FROM orders, tags WHERE orders.tag_id = tags.id AND tags.is_open = 1 AND orders.is_peste = 9; | 1 | 1 | 1 | |
| SELECT `TABLE_NAME` FROM `information_schema`.`TABLES` where `TABLE_SCHEMA` = 'diamag_v9' ORDER BY `TABLE_NAME`; | 0 | 0 | 2 | maybe slow |