Query time 0.07059
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "128.76"
},
"ordering_operation": {
"using_filesort": true,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"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": 31,
"rows_produced_per_join": 1,
"filtered": "4.00",
"cost_info": {
"read_cost": "13.86",
"eval_cost": "0.12",
"prefix_cost": "13.98",
"data_read_per_join": "3K"
},
"used_columns": [
"category_id",
"usergroup_ids",
"status",
"storefront_id"
],
"attached_condition": "((`nuie_scalesta_net`.`cscart_categories`.`category_id` in (7148,7149,7150,7151,7152,7160,7161,7162,7227,7156,7157,7194,7218,7158,7159,7247,7263,7163,7164,7207,7208,7224,7243,7225,7283,7266,7267,7313,7314,7342,7348)) 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": "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": 2,
"filtered": "33.33",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "2.60",
"eval_cost": "0.21",
"prefix_cost": "16.79",
"data_read_per_join": "13K"
},
"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": "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": 243,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.60",
"eval_cost": "24.31",
"prefix_cost": "41.71",
"data_read_per_join": "3K"
},
"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": 12,
"filtered": "5.00",
"cost_info": {
"read_cost": "36.47",
"eval_cost": "1.22",
"prefix_cost": "102.48",
"data_read_per_join": "58K"
},
"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": 12,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.82",
"eval_cost": "1.22",
"prefix_cost": "105.52",
"data_read_per_join": "46K"
},
"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": 19,
"filtered": "9.92",
"cost_info": {
"read_cost": "3.09",
"eval_cost": "2.00",
"prefix_cost": "128.76",
"data_read_per_join": "479"
},
"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 |
| 91863 |
Victrion Ceramic Soap Dish Holder |
Roxor |
79.17000000 |
P |
0 |
N |
N |
N |
| 92227 |
Bath Wastes Push Down Bath Waste 60mm (Unslotted) |
Roxor |
79.17000000 |
P |
0 |
N |
N |
N |
| 82402 |
Large Traditional Handset Black |
Roxor |
78.33000000 |
P |
0 |
N |
N |
N |
| 88146 |
Shower Bath End Panel 700mm |
Roxor |
78.33000000 |
P |
0 |
N |
N |
N |
| 88589 |
Fusion Shower Bath End Panel 700mm |
Roxor |
78.33000000 |
P |
0 |
N |
N |
N |
| 89589 |
Shower Kits Slide Rail Kit |
Roxor |
78.33000000 |
P |
0 |
N |
N |
N |
| 92210 |
Bath Wastes Push Down Bath Waste 70mm (Slotted) |
Roxor |
78.33000000 |
P |
0 |
N |
N |
N |
| 87786 |
Athena Furniture Worktop 600mm |
Roxor |
75.00000000 |
P |
0 |
N |
N |
N |
| 87874 |
Mayford Round Ceramic 1 Tap Hole Basin 550mm |
Roxor |
75.00000000 |
P |
0 |
N |
N |
N |
| 85554 |
Large Traditional Handset |
Roxor |
74.17000000 |
P |
0 |
N |
N |
N |
| 85577 |
Wastes & Extras Pop Up Bath Waste |
Roxor |
74.17000000 |
P |
0 |
N |
N |
N |
| 87792 |
Athena Furniture Worktop 800mm |
Roxor |
74.17000000 |
P |
0 |
N |
N |
N |
| 87798 |
Athena Furniture Worktop 800mm |
Roxor |
74.17000000 |
P |
0 |
N |
N |
N |
| 87880 |
Mayford Square Ceramic 1 Tap Hole Basin 450mm |
Roxor |
74.17000000 |
P |
0 |
N |
N |
N |
| 86366 |
Crosshead Angled Radiator Valve Pack (Pairs) |
Roxor |
72.50000000 |
P |
0 |
N |
N |
N |
| 86368 |
Crosshead Straight Radiator Valve Pack (Pairs) |
Roxor |
72.50000000 |
P |
0 |
N |
N |
N |
| 86806 |
Shower Kits Slide Rail Kit |
Roxor |
72.50000000 |
P |
0 |
N |
N |
N |
| 92373 |
Waste Trap For Furniture Basins |
Roxor |
71.67000000 |
P |
0 |
N |
N |
N |
| 91900 |
Victrion Double Corner Shower Basket |
Roxor |
70.00000000 |
P |
0 |
N |
N |
N |
| 87873 |
Mayford Round Ceramic 1 Tap Hole Basin 450mm |
Roxor |
69.17000000 |
P |
0 |
N |
N |
N |
| 90317 |
Dual Flush Concealed Cistern |
Roxor |
69.17000000 |
P |
0 |
N |
N |
N |
| 90319 |
Dual Flush Concealed Cistern |
Roxor |
69.17000000 |
P |
0 |
N |
N |
N |
| 90320 |
Dual Flush Concealed Cistern |
Roxor |
69.17000000 |
P |
0 |
N |
N |
N |
| 84244 |
End Panel & Plinth 800mm |
Roxor |
67.50000000 |
P |
0 |
N |
N |
N |
| 85645 |
Wastes & Extras Cistern Cut-Off Valve |
Roxor |
67.50000000 |
P |
0 |
N |
N |
N |
| 87388 |
Ceramics Accessories Round Flush Plate for Pneumatic Dual Flush |
Roxor |
66.67000000 |
P |
0 |
N |
N |
N |
| 88390 |
Toilet Seats Luxury Top Fix Soft Close Toilet Seat |
Roxor |
66.67000000 |
P |
0 |
N |
N |
N |
| 91428 |
Toilet Seats Round Wrapover Soft Close Top Fix Toilet Seat - For use with Freya Toilets |
Roxor |
66.67000000 |
P |
0 |
N |
N |
N |
| 91430 |
Toilet Seats Square Wrapover Soft Close Top Fix Toilet Seat - For use with Ava Toilets |
Roxor |
66.67000000 |
P |
0 |
N |
N |
N |
| 82560 |
Square Wall Mounted Shower Arm |
Roxor |
65.83000000 |
P |
0 |
N |
N |
N |
| 82565 |
Fixed Shower Heads Ceiling-Mounted Arm Matt Black |
Roxor |
65.83000000 |
P |
0 |
N |
N |
N |
| 82569 |
Fixed Shower Heads Round Ceiling Arm 300mm |
Roxor |
65.83000000 |
P |
0 |
N |
N |
N |
| 82573 |
Fixed Shower Heads Ceiling-Mounted Arm Brushed Brass |
Roxor |
65.83000000 |
P |
0 |
N |
N |
N |
| 85570 |
Traditional Basin Black Pull Up Waste |
Roxor |
65.83000000 |
P |
0 |
N |
N |
N |
| 82562 |
Fixed Shower Heads Wall-Mounted Arm Matt Black |
Roxor |
65.00000000 |
P |
0 |
N |
N |
N |
| 82566 |
Fixed Shower Heads Wall Hung Shower Arm |
Roxor |
65.00000000 |
P |
0 |
N |
N |
N |
| 82570 |
Fixed Shower Heads Wall-Mounted Arm Brushed Brass |
Roxor |
65.00000000 |
P |
0 |
N |
N |
N |
| 84243 |
Straight End Panel & Plinth 750mm |
Roxor |
65.00000000 |
P |
0 |
N |
N |
N |
| 86361 |
Angled Radiator Valve Pack (Pairs) |
Roxor |
65.00000000 |
P |
0 |
N |
N |
N |
| 86367 |
Straight Radiator Valve Pack (Pairs) |
Roxor |
65.00000000 |
P |
0 |
N |
N |
N |
| 87785 |
Athena Furniture Worktop 500mm |
Roxor |
65.00000000 |
P |
0 |
N |
N |
N |
| 87790 |
Athena Furniture Worktop 600mm |
Roxor |
65.00000000 |
P |
0 |
N |
N |
N |
| 87796 |
Athena Furniture Worktop 600mm |
Roxor |
65.00000000 |
P |
0 |
N |
N |
N |
| 88395 |
Toilet Seats Traditional Toilet Seat Plastic Hinges |
Roxor |
65.00000000 |
P |
0 |
N |
N |
N |
| 88585 |
Fusion Bath End Panel & Plinth 750mm |
Roxor |
65.00000000 |
P |
0 |
N |
N |
N |
| 90266 |
Wetroom Wall Channel 1950mm Black Matt Black |
Roxor |
65.00000000 |
P |
0 |
N |
N |
N |
| 90273 |
Wetroom Wall Channel 1950mm Brass Brushed Brass |
Roxor |
65.00000000 |
P |
0 |
N |
N |
N |
| 91968 |
Victrion Ceiling Mounted Shower Arm |
Roxor |
64.17000000 |
P |
0 |
N |
N |
N |
| 86360 |
Corner Radiator Valve Pack (Pairs) |
Roxor |
63.33000000 |
P |
0 |
N |
N |
N |
| 86887 |
Legend Soft Close Wooden Toilet Seat |
Roxor |
63.33000000 |
P |
0 |
N |
N |
N |
| 90844 |
Pacific Enclosure Screw Cover Kit Chrome, 1850mm |
Roxor |
63.33000000 |
P |
0 |
N |
N |
N |
| 92383 |
Lever Handle for Close Coupled/Low Level Cistern |
Roxor |
63.33000000 |
P |
0 |
N |
N |
N |
| 92384 |
Lever Handle for Close Coupled/Low Level Cistern |
Roxor |
63.33000000 |
P |
0 |
N |
N |
N |
| 92385 |
Lever Handle for Close Coupled/Low Level Cistern |
Roxor |
63.33000000 |
P |
0 |
N |
N |
N |
| 92386 |
Lever Handle for Close Coupled/Low Level Cistern |
Roxor |
63.33000000 |
P |
0 |
N |
N |
N |
| 92387 |
Lever Handle for Close Coupled/Low Level Cistern |
Roxor |
63.33000000 |
P |
0 |
N |
N |
N |
| 92388 |
Lever Handle for Close Coupled/Low Level Cistern |
Roxor |
63.33000000 |
P |
0 |
N |
N |
N |
| 92389 |
Lever Handle for Close Coupled/Low Level Cistern |
Roxor |
63.33000000 |
P |
0 |
N |
N |
N |
| 84242 |
Straight End Panel & Plinth 700mm |
Roxor |
61.67000000 |
P |
0 |
N |
N |
N |
| 84289 |
Shower Accessories Douche Spray Kit |
Roxor |
61.67000000 |
P |
0 |
N |
N |
N |
| 88584 |
Fusion Bath End Panel & Plinth 700mm |
Roxor |
61.67000000 |
P |
0 |
N |
N |
N |
| 91889 |
Victrion Open Toilet Roll Holder |
Roxor |
61.67000000 |
P |
0 |
N |
N |
N |
| 91890 |
Victrion Open Toilet Roll Holder |
Roxor |
61.67000000 |
P |
0 |
N |
N |
N |
| 91891 |
Victrion Open Toilet Roll Holder |
Roxor |
61.67000000 |
P |
0 |
N |
N |
N |
| 92333 |
Victrion Toilet Roll Holder |
Roxor |
61.67000000 |
P |
0 |
N |
N |
N |
| 92334 |
Victrion Toilet Roll Holder |
Roxor |
61.67000000 |
P |
0 |
N |
N |
N |
| 92335 |
Victrion Toilet Roll Holder |
Roxor |
61.67000000 |
P |
0 |
N |
N |
N |
| 92336 |
Victrion Toilet Roll Holder |
Roxor |
61.67000000 |
P |
0 |
N |
N |
N |
| 82555 |
Fixed Shower Heads Wall-Mounted Arm |
Roxor |
60.00000000 |
P |
0 |
N |
N |
N |
| 85581 |
Large Traditional Handset |
Roxor |
60.00000000 |
P |
0 |
N |
N |
N |
| 86888 |
Standpipes |
Roxor |
60.00000000 |
P |
0 |
N |
N |
N |
| 82553 |
Wall-Mounted Arm |
Roxor |
58.33000000 |
P |
0 |
N |
N |
N |
| 88389 |
Toilet Seats Luxury Top Fix Soft Close Toilet Seat |
Roxor |
58.33000000 |
P |
0 |
N |
N |
N |
| 88391 |
Toilet Seats Luxury D Shaped Top Fix Soft Close Toilet Seat |
Roxor |
58.33000000 |
P |
0 |
N |
N |
N |
| 92365 |
Basin Bottle Trap |
Roxor |
58.33000000 |
P |
0 |
N |
N |
N |
| 82391 |
Shower Accessories Wall Bracket |
Roxor |
56.67000000 |
P |
0 |
N |
N |
N |
| 82554 |
Shower Arms Wall-Mounted Arm |
Roxor |
56.67000000 |
P |
0 |
N |
N |
N |
| 86890 |
Standpipes |
Roxor |
56.67000000 |
P |
0 |
N |
N |
N |
| 87789 |
Athena Furniture Worktop 500mm |
Roxor |
56.67000000 |
P |
0 |
N |
N |
N |
| 87795 |
Athena Furniture Worktop 500mm |
Roxor |
56.67000000 |
P |
0 |
N |
N |
N |
| 91864 |
Victrion Glass Gallery Shelf |
Roxor |
56.67000000 |
P |
0 |
N |
N |
N |
| 88388 |
Toilet Seats D Shaped Top Fix Soft Close Toilet Seat |
Roxor |
55.83000000 |
P |
0 |
N |
N |
N |
| 92374 |
Waste Trap For Furniture Basins |
Roxor |
55.00000000 |
P |
0 |
N |
N |
N |
| 82559 |
Shower Arms Ceiling-Mounted Arm |
Roxor |
54.17000000 |
P |
0 |
N |
N |
N |
| 85576 |
Large Traditional Handset |
Roxor |
54.17000000 |
P |
0 |
N |
N |
N |
| 85584 |
Standpipes |
Roxor |
54.17000000 |
P |
0 |
N |
N |
N |
| 86352 |
Angled Radiator Valve Pack (Pairs) |
Roxor |
54.17000000 |
P |
0 |
N |
N |
N |
| 88095 |
Richmond Towel Rail |
Roxor |
54.17000000 |
P |
0 |
N |
N |
N |
| 82428 |
Magnetic Robe Hook |
Roxor |
52.50000000 |
P |
0 |
N |
N |
N |
| 82552 |
Shower Arms Wall-Mounted Arm |
Roxor |
52.50000000 |
P |
0 |
N |
N |
N |
| 82564 |
Fixed Shower Heads Wall-Mounted Arm Matt Black |
Roxor |
52.50000000 |
P |
0 |
N |
N |
N |
| 82568 |
Fixed Shower Heads Round Ceiling Arm 150mm |
Roxor |
52.50000000 |
P |
0 |
N |
N |
N |
| 82572 |
Fixed Shower Heads Wall-Mounted Arm Brushed Brass |
Roxor |
52.50000000 |
P |
0 |
N |
N |
N |
| 85572 |
Black Ceramic Handle WC Lever |
Roxor |
52.50000000 |
P |
0 |
N |
N |
N |
| 88392 |
Toilet Seats Standard Top Fix Soft Close Toilet Seat |
Roxor |
52.50000000 |
P |
0 |
N |
N |
N |
| 91976 |
Victrion Arch Wall Mounted Shower Arm |
Roxor |
51.67000000 |
P |
0 |
N |
N |
N |