Query time 0.01836
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "31.17"
},
"ordering_operation": {
"using_filesort": true,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "companies",
"access_type": "range",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"company_id"
],
"key_length": "4",
"rows_examined_per_scan": 5,
"rows_produced_per_join": 0,
"filtered": "14.29",
"cost_info": {
"read_cost": "2.19",
"eval_cost": "0.07",
"prefix_cost": "2.26",
"data_read_per_join": "4K"
},
"used_columns": [
"company_id",
"status",
"company"
],
"attached_condition": "((`nuie_scalesta_net`.`companies`.`status` = 'A') and (`nuie_scalesta_net`.`companies`.`company_id` in (2,8,9,10,0)))"
}
},
{
"table": {
"table_name": "cscart_categories",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"rows_examined_per_scan": 13,
"rows_produced_per_join": 0,
"filtered": "4.00",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "4.16",
"eval_cost": "0.04",
"prefix_cost": "6.46",
"data_read_per_join": "992"
},
"used_columns": [
"category_id",
"usergroup_ids",
"status",
"storefront_id"
],
"attached_condition": "((`nuie_scalesta_net`.`cscart_categories`.`category_id` in (7197,7198,7199,7203,7209,7264,7204,7205,7206,7255,7256,7215,7216)) and ((`nuie_scalesta_net`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`nuie_scalesta_net`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`nuie_scalesta_net`.`cscart_categories`.`usergroup_ids`))) and (`nuie_scalesta_net`.`cscart_categories`.`status` in ('A','H')) and (`nuie_scalesta_net`.`cscart_categories`.`storefront_id` in (0,1)))"
}
},
{
"table": {
"table_name": "products_categories",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"pt"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"nuie_scalesta_net.cscart_categories.category_id"
],
"rows_examined_per_scan": 117,
"rows_produced_per_join": 43,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.11",
"eval_cost": "4.37",
"prefix_cost": "10.93",
"data_read_per_join": "699"
},
"used_columns": [
"product_id",
"category_id"
]
}
},
{
"table": {
"table_name": "products",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"age_verification",
"status",
"idx_parent_product_id",
"my_supplier_id",
"supplier_access_time",
"products_rf_product_code_index",
"products_rf_manufacturer_code_index"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"nuie_scalesta_net.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 2,
"filtered": "5.00",
"cost_info": {
"read_cost": "10.92",
"eval_cost": "0.22",
"prefix_cost": "26.23",
"data_read_per_join": "10K"
},
"used_columns": [
"product_id",
"product_type",
"status",
"company_id",
"usergroup_ids",
"parent_product_id",
"rf_stop_update_price",
"rf_stop_update_amount",
"rf_stop_update_status"
],
"attached_condition": "((`nuie_scalesta_net`.`products`.`company_id` = `nuie_scalesta_net`.`companies`.`company_id`) and (`nuie_scalesta_net`.`products`.`parent_product_id` = 0) and ((`nuie_scalesta_net`.`products`.`usergroup_ids` = '') or (0 <> find_in_set(0,`nuie_scalesta_net`.`products`.`usergroup_ids`)) or (0 <> find_in_set(1,`nuie_scalesta_net`.`products`.`usergroup_ids`))) and (`nuie_scalesta_net`.`products`.`status` = 'A') and (`nuie_scalesta_net`.`products`.`product_type` <> 'D'))"
}
},
{
"table": {
"table_name": "descr1",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"product_id"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id",
"lang_code"
],
"key_length": "9",
"ref": [
"nuie_scalesta_net.products_categories.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.55",
"eval_cost": "0.22",
"prefix_cost": "26.99",
"data_read_per_join": "8K"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
},
{
"table": {
"table_name": "prices",
"access_type": "ref",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"usergroup_id"
],
"key": "usergroup",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"nuie_scalesta_net.products_categories.product_id"
],
"rows_examined_per_scan": 16,
"rows_produced_per_join": 3,
"filtered": "9.92",
"cost_info": {
"read_cost": "0.56",
"eval_cost": "0.36",
"prefix_cost": "31.17",
"data_read_per_join": "86"
},
"used_columns": [
"product_id",
"price",
"percentage_discount",
"lower_limit",
"usergroup_id"
],
"attached_condition": "((`nuie_scalesta_net`.`prices`.`lower_limit` = 1) and (`nuie_scalesta_net`.`prices`.`usergroup_id` in (0,0,1)))"
}
}
]
}
}
}
}
Result
| product_id |
product |
company_name |
price |
product_type |
parent_product_id |
rf_stop_update_price |
rf_stop_update_amount |
rf_stop_update_status |
| 88058 |
Richmond 560mm 3 Tap Hole Basin |
Roxor |
112.50000000 |
P |
0 |
N |
N |
N |
| 84851 |
Lawton 550mm Basin & Pedestal |
Roxor |
110.00000000 |
P |
0 |
N |
N |
N |
| 88037 |
Richmond 515mm Cloakroom Basin |
Roxor |
110.00000000 |
P |
0 |
N |
N |
N |
| 88059 |
Richmond 500mm Basin 2 Tap Hole |
Roxor |
102.50000000 |
P |
0 |
N |
N |
N |
| 88060 |
Richmond 500mm Basin 1 Tap Hole |
Roxor |
102.50000000 |
P |
0 |
N |
N |
N |
| 87907 |
Round Vessel 358 x 368 x 137mm |
Roxor |
96.67000000 |
P |
0 |
N |
N |
N |
| 87940 |
Chancery 500mm Basin 1 Tap Hole |
Roxor |
95.83000000 |
P |
0 |
N |
N |
N |
| 88091 |
Melbourne 450mm Wall Hung Basin |
Roxor |
86.67000000 |
P |
0 |
N |
N |
N |
| 88090 |
Melbourne 350mm Wall Hung Basin |
Roxor |
81.67000000 |
P |
0 |
N |
N |
N |
| 88087 |
Melbourne 450mm Wall Hung Basin |
Roxor |
68.33000000 |
P |
0 |
N |
N |
N |
| 88086 |
Melbourne 350mm Wall Hung Basin |
Roxor |
58.33000000 |
P |
0 |
N |
N |
N |
| 93150 |
CRP306W |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93151 |
CRP340 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93152 |
CRP341W |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93153 |
CRP600W |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93154 |
CRP606W |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93155 |
CSP300W |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93156 |
CSP406W |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93157 |
CSP440 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93158 |
CSS006 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93159 |
CSS007 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93789 |
NCG606 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93795 |
NCK106 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93796 |
NCK140 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93797 |
NCS750 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94448 |
PP848 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94450 |
BAR003 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94451 |
BAR004 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94504 |
BAYC023 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94796 |
CLW006 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94797 |
CLW007 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94798 |
MIL002 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94799 |
MIL003 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94800 |
MIL004 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94801 |
MIL005 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94802 |
MIL250 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94803 |
MIL251 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94804 |
MIL286 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94805 |
MIL296 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94806 |
NCG505 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94807 |
NCG551 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94808 |
NCG651 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94809 |
NCK206 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94810 |
NCK240 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94823 |
RAM002 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94824 |
RAM003 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94825 |
RAM140 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94826 |
RAM150 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94827 |
RAM832 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94828 |
RAM842 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94829 |
RAM862 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94830 |
RAM932 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94831 |
RAM942 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94832 |
RAMW002 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94842 |
23701P2-J |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95312 |
SY-ANGELWH |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95313 |
SY-ANGELWHBLK |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95555 |
238CDOCMCCLEVBL-R |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95556 |
238CDOCMS001-R |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95736 |
EMB102 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95737 |
EMB140 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95738 |
HCT001 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95739 |
HCT001BB |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95740 |
HCT002 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95741 |
HCT002BB |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95742 |
HCT003 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95743 |
HCT004 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95744 |
HCT004A |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95745 |
HCT004B |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95746 |
HCT005 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95747 |
HCT005A |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95748 |
HCT005B |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95749 |
HEC002 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95750 |
HEC003 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95751 |
HEC004 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95752 |
HEC005 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95753 |
HEC008 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95754 |
HEC009 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95755 |
HEC010 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95765 |
HES010 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95786 |
HUN806 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95787 |
HUN840 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95788 |
HUN856 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95813 |
LUL002 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95814 |
LUL003 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95815 |
LUL004 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95816 |
LUL005 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95817 |
LUL006 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95818 |
LUL007 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95819 |
LUL008 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95820 |
LUL010 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95832 |
LXBL006 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95833 |
LXBV001 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95834 |
LXBV002 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95835 |
LXBV005 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95836 |
LXBV006 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |