Query time 0.02556
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "34.26"
},
"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": "12.50",
"cost_info": {
"read_cost": "2.20",
"eval_cost": "0.06",
"prefix_cost": "2.26",
"data_read_per_join": "3K"
},
"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": 12,
"rows_produced_per_join": 0,
"filtered": "4.00",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "3.36",
"eval_cost": "0.03",
"prefix_cost": "5.65",
"data_read_per_join": "801"
},
"used_columns": [
"category_id",
"usergroup_ids",
"status",
"storefront_id"
],
"attached_condition": "((`nuie_scalesta_net`.`cscart_categories`.`category_id` in (7168,7169,7172,7173,7174,7175,7176,7177,7178,7179,7180,7181)) 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": 175,
"rows_produced_per_join": 52,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.09",
"eval_cost": "5.26",
"prefix_cost": "11.00",
"data_read_per_join": "841"
},
"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": "13.15",
"eval_cost": "0.26",
"prefix_cost": "29.41",
"data_read_per_join": "12K"
},
"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.66",
"eval_cost": "0.26",
"prefix_cost": "30.33",
"data_read_per_join": "10K"
},
"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": 12,
"rows_produced_per_join": 2,
"filtered": "8.99",
"cost_info": {
"read_cost": "0.67",
"eval_cost": "0.29",
"prefix_cost": "34.26",
"data_read_per_join": "70"
},
"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 |
| 96932 |
AQVEN8115-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96933 |
AQVEN8116-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96934 |
AQVEN8117-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96935 |
AQVEN8118-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96936 |
AQVEN8119-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96937 |
AQVEN8120-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96938 |
AQVEN8121-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96939 |
AQVEN8122-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96940 |
AQVEN8123-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96941 |
AQVEN8124-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96942 |
AQVEN8125-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96943 |
AQVEN8126-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96944 |
AQVEN8127-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96945 |
AQVEN8128-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96946 |
AQVEN8129-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96947 |
AQVEN8130-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96948 |
AQVEN8131-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96949 |
AQVEN8132-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96950 |
AQVEN8133-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96951 |
AQVEN8135-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96952 |
AQVEN8136-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 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 |
| 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 |
| 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 |
| 98894 |
M1100SS-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98895 |
M1200SS-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98896 |
M1400SS-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98898 |
M70EP-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98899 |
M76EP-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98900 |
M800Q-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98901 |
M80EP-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98902 |
M900Q-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98903 |
M900QBP-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98904 |
M9080Q-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98905 |
M90EP-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98906 |
MH70-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98907 |
MH76-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98908 |
MH80-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98909 |
MH90-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100181 |
SMBD10-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100182 |
SMBD10BB-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100183 |
SMBD10BP-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100184 |
SMBD11-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100185 |
SMBD12-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100186 |
SMBD7-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100187 |
SMBD76-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100188 |
SMBD76BB-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100189 |
SMBD76BP-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100190 |
SMBD7BB-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100191 |
SMBD7BP-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100192 |
SMBD8-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100193 |
SMBD8BB-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100194 |
SMBD8BP-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100195 |
SMBD9-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100196 |
SMBD9BB-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |