Query time 0.04643
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "51.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": 22,
"rows_produced_per_join": 0,
"filtered": "4.00",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "7.03",
"eval_cost": "0.06",
"prefix_cost": "9.35",
"data_read_per_join": "1K"
},
"used_columns": [
"category_id",
"usergroup_ids",
"status",
"storefront_id"
],
"attached_condition": "((`nuie_scalesta_net`.`cscart_categories`.`category_id` in (7165,7166,7167,7193,7168,7169,7172,7173,7174,7175,7176,7177,7178,7179,7180,7181,7182,7183,7226,7318,7319,7328)) 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": 73,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.18",
"eval_cost": "7.39",
"prefix_cost": "16.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": 3,
"filtered": "5.00",
"cost_info": {
"read_cost": "18.48",
"eval_cost": "0.37",
"prefix_cost": "42.81",
"data_read_per_join": "17K"
},
"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": 3,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.92",
"eval_cost": "0.37",
"prefix_cost": "44.10",
"data_read_per_join": "14K"
},
"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": 6,
"filtered": "9.92",
"cost_info": {
"read_cost": "0.94",
"eval_cost": "0.61",
"prefix_cost": "51.17",
"data_read_per_join": "145"
},
"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 |
| 96953 |
AQVEN8137-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96954 |
AQVEN8138-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96955 |
AQVEN8139-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96956 |
AQVEN8140-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96957 |
AQVEN8141-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96958 |
AQVEN8142-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96959 |
AQVEN8143-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96960 |
AQVEN8144-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96961 |
AQVEN8145-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96962 |
AQVEN8146-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96963 |
AQVEN8147-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96964 |
AQVEN8148-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96965 |
AQVEN8149-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96966 |
AQVEN8150-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96967 |
AQVEN8151-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96968 |
AQVEN8152-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96969 |
AQVEN8159-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96970 |
AQVEN8160-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96971 |
AQVEN8161-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96972 |
AQVEN8162-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96973 |
AQVEN8163-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96974 |
AQVEN8164-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96975 |
AQVEN8165-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96976 |
AQVEN8166-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96977 |
AQVEN8167-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96978 |
AQVEN8168-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96979 |
AQVEN8169-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96980 |
AQVEN8170-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96981 |
AQVEN8191-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96982 |
AQVEN8192-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96983 |
AQVEN8193-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96984 |
AQVEN8227-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96998 |
ARM22-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98192 |
CMA035-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98193 |
CMA035BC-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98194 |
CMA035BCO-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98195 |
CMA035BG-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98196 |
CMA035BN-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98197 |
CMA035CO-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98198 |
CMA035G-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98199 |
CMA035N-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98208 |
CMA050-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98209 |
CMA050BC-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98210 |
CMA050BCO-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98211 |
CMA050BG-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98212 |
CMA050BN-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98213 |
CMA050CO-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98214 |
CMA050G-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98215 |
CMA050N-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98216 |
CMA055-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98217 |
CMA055BC-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98218 |
CMA055BCO-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98219 |
CMA055BG-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98220 |
CMA055BN-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98221 |
CMA055CO-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98222 |
CMA055G-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98223 |
CMA055N-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98322 |
CSD305-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98323 |
CSD310-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98482 |
EA383-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98509 |
ERBD76-E5-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98510 |
ERBD80-E5-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98511 |
ERCE8080-E5-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98512 |
ERPD76-E5-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98513 |
ERPD80-E5-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98514 |
ERPD90-E5-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98516 |
ERSL12-E5-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98517 |
ERSP70-E5-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98518 |
ERSP76-E5-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98519 |
ERSP80-E5-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98520 |
ERSP90-E5-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98538 |
FIX023-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98539 |
FIX024-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98540 |
FIX025-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98541 |
FIX027-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98542 |
FIX030-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98543 |
FIX031-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98544 |
FIX040-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98545 |
FIX041-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98546 |
FIX070-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98547 |
FIX071-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98548 |
FIX080-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98549 |
FIX081-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98563 |
HAN005AA-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98564 |
HAN009AA-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98565 |
HAN1001AA-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98566 |
HAN1005AA-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98567 |
HAN1005FA-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98568 |
HAN1203AA-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98569 |
HAN1204AA-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98758 |
LA371-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98889 |
M1000Q-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98890 |
M1000QBP-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98891 |
M1000SS-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98892 |
M1080Q-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98893 |
M10EP-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |