Query time 0.06743
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "71.18"
},
"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": 31,
"rows_produced_per_join": 0,
"filtered": "4.00",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "9.90",
"eval_cost": "0.09",
"prefix_cost": "12.25",
"data_read_per_join": "2K"
},
"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": "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": 104,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.26",
"eval_cost": "10.42",
"prefix_cost": "22.93",
"data_read_per_join": "1K"
},
"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": 5,
"filtered": "5.00",
"cost_info": {
"read_cost": "26.05",
"eval_cost": "0.52",
"prefix_cost": "59.40",
"data_read_per_join": "24K"
},
"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": 5,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.30",
"eval_cost": "0.52",
"prefix_cost": "61.22",
"data_read_per_join": "19K"
},
"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": 8,
"filtered": "9.92",
"cost_info": {
"read_cost": "1.33",
"eval_cost": "0.86",
"prefix_cost": "71.18",
"data_read_per_join": "205"
},
"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 |
| 85599 |
Wastes & Extras Square Bottle Trap & Extension Tube |
Roxor |
135.00000000 |
P |
0 |
N |
N |
N |
| 92212 |
Bath Wastes Push Down Bath Waste 70mm (Slotted) |
Roxor |
134.17000000 |
P |
0 |
N |
N |
N |
| 92213 |
Bath Wastes Push Down Bath Waste 70mm (Slotted) |
Roxor |
134.17000000 |
P |
0 |
N |
N |
N |
| 92214 |
Bath Wastes Push Down Bath Waste 70mm (Slotted) |
Roxor |
134.17000000 |
P |
0 |
N |
N |
N |
| 92215 |
Bath Wastes Push Down Bath Waste 70mm (Slotted) |
Roxor |
134.17000000 |
P |
0 |
N |
N |
N |
| 92217 |
Bath Wastes Push Down Bath Waste 70mm (Slotted) |
Roxor |
134.17000000 |
P |
0 |
N |
N |
N |
| 92223 |
Bath Wastes Push Down Bath Waste 70mm (Slotted) |
Roxor |
134.17000000 |
P |
0 |
N |
N |
N |
| 92465 |
Push Down Bath Waste 70mm (Slotted) |
Roxor |
134.17000000 |
P |
0 |
N |
N |
N |
| 92466 |
Push Down Bath Waste 70mm (Slotted) |
Roxor |
134.17000000 |
P |
0 |
N |
N |
N |
| 90827 |
Core 500mm Thin Edge Basin 1TH |
Roxor |
133.33000000 |
P |
0 |
N |
N |
N |
| 92191 |
Bath Wastes Plug & Chain Exposed Ext Bath Waste |
Roxor |
133.33000000 |
P |
0 |
N |
N |
N |
| 84238 |
Straight Front Panel & Plinth 1500mm |
Roxor |
131.67000000 |
P |
0 |
N |
N |
N |
| 87995 |
Fusion Fitted Round 1 Tap Hole Semi Recessed Ceramic Basin 500mm |
Roxor |
131.67000000 |
P |
0 |
N |
N |
N |
| 89167 |
Thermostatic Radiator Valve Pack |
Roxor |
131.67000000 |
P |
0 |
N |
N |
N |
| 89168 |
Thermostatic Radiator Valve Pack |
Roxor |
131.67000000 |
P |
0 |
N |
N |
N |
| 89170 |
Camden Angled Thermostatic Valve |
Roxor |
131.67000000 |
P |
0 |
N |
N |
N |
| 89171 |
Camden Angled Thermostatic Valve |
Roxor |
131.67000000 |
P |
0 |
N |
N |
N |
| 92430 |
Victrion Matt Black Soft close Toilet Seat |
Roxor |
131.67000000 |
P |
0 |
N |
N |
N |
| 91978 |
Victrion Arch Wall Mounted Shower Arm |
Roxor |
130.00000000 |
P |
0 |
N |
N |
N |
| 91981 |
Victrion Arch Wall Mounted Shower Arm |
Roxor |
130.00000000 |
P |
0 |
N |
N |
N |
| 82361 |
Rigid Riser Kit |
Roxor |
129.17000000 |
P |
0 |
N |
N |
N |
| 82432 |
Magnetic Towel Rail |
Roxor |
129.17000000 |
P |
0 |
N |
N |
N |
| 82563 |
Fixed Shower Heads Wall-Mounted Arm |
Roxor |
129.17000000 |
P |
0 |
N |
N |
N |
| 82567 |
Fixed Shower Heads Small Rectangular Shower Arm |
Roxor |
129.17000000 |
P |
0 |
N |
N |
N |
| 82571 |
Fixed Shower Heads Wall-Mounted Arm |
Roxor |
129.17000000 |
P |
0 |
N |
N |
N |
| 87882 |
Mayford Square Ceramic 1 Tap Hole Basin 650mm |
Roxor |
129.17000000 |
P |
0 |
N |
N |
N |
| 92228 |
Bath Wastes Push Down Bath Waste 60mm (Unslotted) |
Roxor |
127.50000000 |
P |
0 |
N |
N |
N |
| 92229 |
Bath Wastes Push Down Bath Waste 60mm (Unslotted) |
Roxor |
127.50000000 |
P |
0 |
N |
N |
N |
| 92230 |
Bath Wastes Push Down Bath Waste 60mm (Unslotted) |
Roxor |
127.50000000 |
P |
0 |
N |
N |
N |
| 92231 |
Bath Wastes Push Down Bath Waste 60mm (Unslotted) |
Roxor |
127.50000000 |
P |
0 |
N |
N |
N |
| 92237 |
Bath Wastes Push Down Bath Waste 60mm (Unslotted) |
Roxor |
127.50000000 |
P |
0 |
N |
N |
N |
| 92469 |
Push Down Bath Waste 60mm (Unslotted) |
Roxor |
127.50000000 |
P |
0 |
N |
N |
N |
| 92470 |
Push Down Bath Waste 60mm (Unslotted) |
Roxor |
127.50000000 |
P |
0 |
N |
N |
N |
| 92471 |
Push Down Bath Waste 60mm (Unslotted) |
Roxor |
127.50000000 |
P |
0 |
N |
N |
N |
| 92439 |
Victrion White Gloss Soft close Toilet Seat |
Roxor |
126.67000000 |
P |
0 |
N |
N |
N |
| 91865 |
Victrion Glass Gallery Shelf |
Roxor |
125.83000000 |
P |
0 |
N |
N |
N |
| 85585 |
Standpipes |
Roxor |
125.00000000 |
P |
0 |
N |
N |
N |
| 92366 |
Basin Bottle Trap |
Roxor |
125.00000000 |
P |
0 |
N |
N |
N |
| 92367 |
Basin Bottle Trap |
Roxor |
125.00000000 |
P |
0 |
N |
N |
N |
| 92368 |
Basin Bottle Trap |
Roxor |
125.00000000 |
P |
0 |
N |
N |
N |
| 92369 |
Basin Bottle Trap |
Roxor |
125.00000000 |
P |
0 |
N |
N |
N |
| 92370 |
Basin Bottle Trap |
Roxor |
125.00000000 |
P |
0 |
N |
N |
N |
| 92371 |
Basin Bottle Trap |
Roxor |
125.00000000 |
P |
0 |
N |
N |
N |
| 92372 |
Basin Bottle Trap |
Roxor |
125.00000000 |
P |
0 |
N |
N |
N |
| 90324 |
Ceramics Accessories Pneumatic Dual Flush Universal Access Concealed Cistern |
Roxor |
124.17000000 |
P |
0 |
N |
N |
N |
| 90326 |
Ceramics Accessories Pneumatic Dual Flush Universal Access Concealed Cistern |
Roxor |
124.17000000 |
P |
0 |
N |
N |
N |
| 91977 |
Victrion Arch Wall Mounted Shower Arm |
Roxor |
123.33000000 |
P |
0 |
N |
N |
N |
| 91979 |
Victrion Arch Wall Mounted Shower Arm |
Roxor |
123.33000000 |
P |
0 |
N |
N |
N |
| 91980 |
Victrion Arch Wall Mounted Shower Arm |
Roxor |
123.33000000 |
P |
0 |
N |
N |
N |
| 91982 |
Victrion Arch Wall Mounted Shower Arm |
Roxor |
123.33000000 |
P |
0 |
N |
N |
N |
| 91983 |
Victrion Arch Wall Mounted Shower Arm |
Roxor |
123.33000000 |
P |
0 |
N |
N |
N |
| 91892 |
Victrion 3 Tier Towel Rack |
Roxor |
122.50000000 |
P |
0 |
N |
N |
N |
| 92150 |
Standpipes Traditional Bath Legs with Adjustable Shrouds |
Roxor |
122.50000000 |
P |
0 |
N |
N |
N |
| 82556 |
Fixed Shower Heads Wall-Mounted Arm |
Roxor |
121.67000000 |
P |
0 |
N |
N |
N |
| 84254 |
800mm Straight Bath End Panel & Plinth |
Roxor |
121.67000000 |
P |
0 |
N |
N |
N |
| 84259 |
800mm Straight Bath End Panel & Plinth |
Roxor |
121.67000000 |
P |
0 |
N |
N |
N |
| 85596 |
Wastes & Extras Square Bottle Trap & Extension Tube |
Roxor |
121.67000000 |
P |
0 |
N |
N |
N |
| 87577 |
Urban Bath End Panel 800mm |
Roxor |
121.67000000 |
P |
0 |
N |
N |
N |
| 87592 |
Urban Bath End Panel 800mm |
Roxor |
121.67000000 |
P |
0 |
N |
N |
N |
| 87607 |
Urban Bath End Panel 800mm |
Roxor |
121.67000000 |
P |
0 |
N |
N |
N |
| 88788 |
Fusion Bath End Panel 800mm |
Roxor |
121.67000000 |
P |
0 |
N |
N |
N |
| 92197 |
Bath Wastes Push Down Concealed Bath Waste |
Roxor |
121.67000000 |
P |
0 |
N |
N |
N |
| 92457 |
Exposed Bath Trap With Adapter (40/42mm) |
Roxor |
121.67000000 |
P |
0 |
N |
N |
N |
| 85646 |
Large Traditional Handset |
Roxor |
120.83000000 |
P |
0 |
N |
N |
N |
| 85583 |
Wastes & Extras Deck Shower Kit |
Roxor |
119.17000000 |
P |
0 |
N |
N |
N |
| 91866 |
Victrion Glass Gallery Shelf |
Roxor |
119.17000000 |
P |
0 |
N |
N |
N |
| 91867 |
Victrion Glass Gallery Shelf |
Roxor |
119.17000000 |
P |
0 |
N |
N |
N |
| 92325 |
Victrion Gallery Shelf |
Roxor |
119.17000000 |
P |
0 |
N |
N |
N |
| 92326 |
Victrion Gallery Shelf |
Roxor |
119.17000000 |
P |
0 |
N |
N |
N |
| 92327 |
Victrion Gallery Shelf |
Roxor |
119.17000000 |
P |
0 |
N |
N |
N |
| 92328 |
Victrion Gallery Shelf |
Roxor |
119.17000000 |
P |
0 |
N |
N |
N |
| 89595 |
Shower Kits Slide Rail Kit |
Roxor |
118.33000000 |
P |
0 |
N |
N |
N |
| 89596 |
Shower Kits Round Slider Rail Kit with Elbow |
Roxor |
118.33000000 |
P |
0 |
N |
N |
N |
| 89597 |
Shower Kits Slide Rail Kit |
Roxor |
118.33000000 |
P |
0 |
N |
N |
N |
| 82336 |
Shower Kits Slide Rail Kit |
Roxor |
117.50000000 |
P |
0 |
N |
N |
N |
| 86251 |
Heating Element (600 Watts) |
Roxor |
117.50000000 |
P |
0 |
N |
N |
N |
| 90054 |
L-Shape Shower Bath Front Panel 1700mm |
Roxor |
117.50000000 |
P |
0 |
N |
N |
N |
| 90056 |
L-Shape Shower Bath Front Panel 1500mm |
Roxor |
117.50000000 |
P |
0 |
N |
N |
N |
| 90057 |
L-Shape Shower Bath Front Panel 1600mm |
Roxor |
117.50000000 |
P |
0 |
N |
N |
N |
| 86861 |
Laminate furniture Cabinet Worktop 720 mm |
Roxor |
116.67000000 |
P |
0 |
N |
N |
N |
| 87875 |
Mayford Round Ceramic 1 Tap Hole Basin 650mm |
Roxor |
115.83000000 |
P |
0 |
N |
N |
N |
| 90323 |
Ceramics Accessories Pneumatic Dual Flush Universal Access Concealed Cistern |
Roxor |
115.83000000 |
P |
0 |
N |
N |
N |
| 91936 |
Victrion Traditional Slide Rail Kit and Handset |
Roxor |
115.00000000 |
P |
0 |
N |
N |
N |
| 92240 |
Basin Wastes Push Down Basin Waste (Unslotted) |
Roxor |
115.00000000 |
P |
0 |
N |
N |
N |
| 92245 |
Basin Wastes Push Down Basin Waste (Unslotted) |
Roxor |
115.00000000 |
P |
0 |
N |
N |
N |
| 92247 |
Basin Wastes Push Down Basin Waste (Unslotted) |
Roxor |
115.00000000 |
P |
0 |
N |
N |
N |
| 92248 |
Basin Wastes Push Down Basin Waste (Unslotted) |
Roxor |
115.00000000 |
P |
0 |
N |
N |
N |
| 92249 |
Basin Wastes Push Down Basin Waste (Unslotted) |
Roxor |
115.00000000 |
P |
0 |
N |
N |
N |
| 92250 |
Basin Wastes Push Down Basin Waste (Unslotted) |
Roxor |
115.00000000 |
P |
0 |
N |
N |
N |
| 92252 |
Basin Wastes Push Down Basin Waste (Unslotted) |
Roxor |
115.00000000 |
P |
0 |
N |
N |
N |
| 92253 |
Basin Wastes Push Down Basin Waste (Unslotted) |
Roxor |
115.00000000 |
P |
0 |
N |
N |
N |
| 92485 |
Push Down Basin Waste (Unslotted) |
Roxor |
115.00000000 |
P |
0 |
N |
N |
N |
| 92486 |
Push Down Basin Waste (Unslotted) |
Roxor |
115.00000000 |
P |
0 |
N |
N |
N |
| 92487 |
Push Down Basin Waste (Unslotted) |
Roxor |
115.00000000 |
P |
0 |
N |
N |
N |
| 84252 |
700mm Straight Bath End Panel & Plinth |
Roxor |
114.17000000 |
P |
0 |
N |
N |
N |
| 84253 |
750mm Straight Bath End Panel & Plinth |
Roxor |
114.17000000 |
P |
0 |
N |
N |
N |