Query time 0.02752
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 (7184,7185,7186,7187,7188,7217,7219,7220,7343,7221,7340,7341)) 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 |
| 92909 |
BIN803 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 92910 |
BIN803F |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 92911 |
BIN821 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 92912 |
BIN821F |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 92934 |
CAN303 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 92935 |
CAN304 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 92936 |
CAN403 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 92937 |
CAN404 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 92938 |
CAN803 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 92939 |
CAN804 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 92940 |
CAR303 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 92941 |
CAR304 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 92942 |
CAR403 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 92943 |
CAR404 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 92944 |
CAR803 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 92945 |
CAR804 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93016 |
CHE300BC |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93017 |
CHE300BCO |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93018 |
CHE300BG |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93019 |
CHE300BN |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93020 |
CHE300CO |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93021 |
CHE300G |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93022 |
CHE300N |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93023 |
CHE301 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93024 |
CHE301BC |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93025 |
CHE301BCO |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93026 |
CHE301BG |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93027 |
CHE301BN |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93028 |
CHE301CO |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93029 |
CHE301G |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93030 |
CHE301N |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93031 |
CHE303 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93032 |
CHE303BC |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93033 |
CHE303BCO |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93034 |
CHE303BG |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93035 |
CHE303BN |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93036 |
CHE303CO |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93037 |
CHE303G |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93038 |
CHE303N |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93039 |
CHE306 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93040 |
CHE306BC |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93041 |
CHE306BCO |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93042 |
CHE306BG |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93043 |
CHE306BN |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93044 |
CHE306CO |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93045 |
CHE306G |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93046 |
CHE306N |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93047 |
CHE308BC |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93048 |
CHE308BCO |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93049 |
CHE308BG |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93050 |
CHE308BN |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93051 |
CHE308CO |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93052 |
CHE308G |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93053 |
CHE308N |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93054 |
CHE321 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93055 |
CHE321BC |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93056 |
CHE321BCO |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93057 |
CHE321BG |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93058 |
CHE321BN |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93059 |
CHE321CO |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93060 |
CHE321G |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93061 |
CHE321N |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93062 |
CHE333 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93063 |
CHE333BC |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93064 |
CHE333BCO |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93065 |
CHE333BG |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93066 |
CHE333BN |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93067 |
CHE333CO |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93068 |
CHE333G |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93069 |
CHE333N |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93070 |
CHE375 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93280 |
DTY303 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93281 |
DTY304 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93282 |
E1521 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93283 |
E1527 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93284 |
E321 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93285 |
E327E |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93286 |
E421 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93287 |
E427E |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93288 |
E721 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93289 |
E727E |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93290 |
E821 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93291 |
E827E |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93294 |
EK1510 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93338 |
ER407 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93339 |
ER807 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93359 |
HAL303 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93360 |
HAL403 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93361 |
HAL803 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93523 |
KAL303 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93524 |
KAL304 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93525 |
KAL403 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93526 |
KAL404 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93527 |
KAL803 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93528 |
KAL804 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93781 |
NAV303 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |