Query time 0.00276
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "65.34"
},
"ordering_operation": {
"using_filesort": true,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "const",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.10",
"prefix_cost": "0.00",
"data_read_per_join": "2K"
},
"used_columns": [
"category_id",
"usergroup_ids",
"status",
"storefront_id"
]
}
},
{
"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": 1,
"filtered": "33.33",
"cost_info": {
"read_cost": "2.10",
"eval_cost": "0.17",
"prefix_cost": "2.26",
"data_read_per_join": "10K"
},
"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": [
"const"
],
"rows_examined_per_scan": 82,
"rows_produced_per_join": 136,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.47",
"eval_cost": "13.67",
"prefix_cost": "16.40",
"data_read_per_join": "2K"
},
"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": 6,
"filtered": "5.00",
"cost_info": {
"read_cost": "20.50",
"eval_cost": "0.68",
"prefix_cost": "50.56",
"data_read_per_join": "32K"
},
"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": 6,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.03",
"eval_cost": "0.68",
"prefix_cost": "52.27",
"data_read_per_join": "26K"
},
"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": 11,
"filtered": "9.92",
"cost_info": {
"read_cost": "1.74",
"eval_cost": "1.12",
"prefix_cost": "65.34",
"data_read_per_join": "269"
},
"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 |
| 88066 |
Maya Cistern C/W Fittings |
Roxor |
283.33000000 |
P |
0 |
N |
N |
N |
| 88075 |
Luna Back to Wall Close Coupled Cistern |
Roxor |
240.83000000 |
P |
0 |
N |
N |
N |
| 88082 |
Arlo Compact Close Coupled Cistern |
Roxor |
218.33000000 |
P |
0 |
N |
N |
N |
| 87958 |
Ambrose Close Coupled Short Projection Cistern & Fittings |
Roxor |
214.17000000 |
P |
0 |
N |
N |
N |
| 89982 |
Victrion Close Coupled Cistern & Fittings |
Roxor |
191.67000000 |
P |
0 |
N |
N |
N |
| 89983 |
Victrion low/Medium Level Cistern |
Roxor |
191.67000000 |
P |
0 |
N |
N |
N |
| 89984 |
Victrion High Level Cistern |
Roxor |
191.67000000 |
P |
0 |
N |
N |
N |
| 88046 |
Richmond Low Level Cistern B Ceramic Lever Fittings |
Roxor |
186.67000000 |
P |
0 |
N |
N |
N |
| 88045 |
Carlton Low Level Cistern Ceramic Lever Fittings |
Roxor |
166.67000000 |
P |
0 |
N |
N |
N |
| 87987 |
Bliss Square Cistern & Fittings |
Roxor |
141.67000000 |
P |
0 |
N |
N |
N |
| 87997 |
Provost Cistern |
Roxor |
131.67000000 |
P |
0 |
N |
N |
N |
| 88026 |
Ivo Close Coupled Cistern |
Roxor |
130.83000000 |
P |
0 |
N |
N |
N |
| 88047 |
Carlton High Level Cistern (Including Fittings) |
Roxor |
129.17000000 |
P |
0 |
N |
N |
N |
| 88048 |
Richmond High Level Cistern B (Including Fittings) |
Roxor |
129.17000000 |
P |
0 |
N |
N |
N |
| 88050 |
Carlton Toilet Cistern with Chrome Lever & Fitting |
Roxor |
121.67000000 |
P |
0 |
N |
N |
N |
| 88051 |
Richmond Toilet Cistern B Ceramic Lever Fittings |
Roxor |
121.67000000 |
P |
0 |
N |
N |
N |
| 87937 |
Chancery Cistern |
Roxor |
115.83000000 |
P |
0 |
N |
N |
N |
| 87950 |
Lawton Curved Cistern |
Roxor |
115.00000000 |
P |
0 |
N |
N |
N |
| 87952 |
Lawton New Cistern |
Roxor |
112.50000000 |
P |
0 |
N |
N |
N |
| 88004 |
Harmony Cistern & Fittings |
Roxor |
112.50000000 |
P |
0 |
N |
N |
N |
| 87948 |
Provost Short Projection Cistern |
Roxor |
102.50000000 |
P |
0 |
N |
N |
N |
| 88029 |
Legend Cistern Including Chrome Handle |
Roxor |
95.00000000 |
P |
0 |
N |
N |
N |
| 93794 |
NCK101 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94496 |
BAYC015 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94499 |
BAYC018 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94501 |
BAYC020 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94515 |
BAYC107 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94581 |
BAYC315 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94843 |
23701T |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94850 |
238CDOCMS002-N |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94852 |
238CDOCMS004-N |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95309 |
SY-ANGELCIST |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95316 |
SY-TORBO2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95376 |
142FE4104 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95762 |
HEC601 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95778 |
HUN171 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95779 |
HUN172 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95823 |
LUL301 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96119 |
SY-ANGELCISTBLK |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96508 |
142FE4104-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96530 |
23701T-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96570 |
238CDOCMS002-N-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96572 |
238CDOCMS004-N-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97620 |
BAYC015-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97623 |
BAYC018-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97625 |
BAYC020-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97639 |
BAYC107-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 97705 |
BAYC315-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99111 |
NCA101-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99122 |
NCA371-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99124 |
NCA381-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99126 |
NCA621-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99129 |
NCB501-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99163 |
NCH101-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99172 |
NCH401-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99178 |
NCH601-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99184 |
NCK101-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99204 |
NCS291-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99207 |
NCS401-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99223 |
NCS871-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99224 |
NCS871B-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99225 |
NCS872-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99226 |
NCS872B-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99228 |
NCS881A-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99229 |
NCS881B-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99244 |
NCT301-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99253 |
NCU601-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99260 |
NCU701-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99271 |
NCV101-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99280 |
NCV171-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99281 |
NCV172-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100388 |
SY-ANGELCIST-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100389 |
SY-ANGELCISTBLK-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100432 |
SY-TORBO2-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100671 |
VCCC101-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100672 |
VCCC102-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100673 |
VCHC103-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |