Query time 0.02986
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "9.78"
},
"ordering_operation": {
"using_filesort": true,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"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": 4,
"rows_produced_per_join": 0,
"filtered": "4.00",
"cost_info": {
"read_cost": "1.80",
"eval_cost": "0.02",
"prefix_cost": "1.81",
"data_read_per_join": "427"
},
"used_columns": [
"category_id",
"usergroup_ids",
"status",
"storefront_id"
],
"attached_condition": "((`nuie_scalesta_net`.`cscart_categories`.`category_id` in (7156,7157,7194,7218)) 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": "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",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "0.35",
"eval_cost": "0.01",
"prefix_cost": "2.18",
"data_read_per_join": "745"
},
"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": [
"nuie_scalesta_net.cscart_categories.category_id"
],
"rows_examined_per_scan": 117,
"rows_produced_per_join": 13,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.03",
"eval_cost": "1.34",
"prefix_cost": "3.55",
"data_read_per_join": "215"
},
"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": 0,
"filtered": "5.00",
"cost_info": {
"read_cost": "3.36",
"eval_cost": "0.07",
"prefix_cost": "8.26",
"data_read_per_join": "3K"
},
"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": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.17",
"eval_cost": "0.07",
"prefix_cost": "8.49",
"data_read_per_join": "2K"
},
"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": 1,
"filtered": "9.92",
"cost_info": {
"read_cost": "0.17",
"eval_cost": "0.11",
"prefix_cost": "9.78",
"data_read_per_join": "26"
},
"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 |
| 99492 |
OFF971N-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99493 |
OFF972N-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99494 |
OFF973N-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99495 |
OFF977N-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99496 |
OFF978N-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99497 |
OFF979N-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99498 |
PAN136-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99499 |
PAN138-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99500 |
PAN139-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99501 |
PAN140-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99502 |
PAN141-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99503 |
PAN142-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99504 |
PAN144-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99505 |
PAN209L-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99506 |
PAN209R-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99508 |
PDT-000599-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99512 |
PDT-000730-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 99516 |
PDT-000734-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100399 |
SY-EAGPAN-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100479 |
SY-ZBP17-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100480 |
T1C-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100481 |
T2C-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100484 |
TB001-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100485 |
TB002-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100486 |
TB003-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100501 |
TJ-LAGUNAPM-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100502 |
TJ-LAGUNAPS-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100700 |
WAS020-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100701 |
WAS020BC-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100702 |
WAS020BCO-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100703 |
WAS020BG-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100704 |
WAS020BN-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100705 |
WAS020CO-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100706 |
WAS020G-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100707 |
WAS020N-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100708 |
WAS030-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100709 |
WAS030BC-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100710 |
WAS030BCO-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100711 |
WAS030BG-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100712 |
WAS030BN-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100713 |
WAS030CO-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100714 |
WAS030G-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100715 |
WAS030N-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100716 |
WAS040-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100717 |
WAS040BC-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100718 |
WAS040BCO-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100719 |
WAS040BG-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100720 |
WAS040BN-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100721 |
WAS040BS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100722 |
WAS040CO-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100723 |
WAS040G-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100724 |
WAS040N-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100725 |
WAS040WH-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100726 |
WAS050-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100727 |
WAS050BC-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100728 |
WAS050BCO-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100729 |
WAS050BG-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100730 |
WAS050BN-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100731 |
WAS050CO-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100732 |
WAS050G-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100733 |
WAS050N-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100734 |
WAS070-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100735 |
WAS070BC-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100736 |
WAS070BCO-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100737 |
WAS070BG-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100738 |
WAS070BN-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100739 |
WAS070CO-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100740 |
WAS070G-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100741 |
WAS070N-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100742 |
WAS080-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100743 |
WAS080BC-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100744 |
WAS080BCO-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100745 |
WAS080BG-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100746 |
WAS080BN-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100747 |
WAS080CO-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100748 |
WAS080G-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100749 |
WAS080N-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100750 |
WAS107-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100751 |
WAS107B-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100752 |
WAS107BC-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100753 |
WAS107BCO-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100754 |
WAS107BG-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100755 |
WAS107BN-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100756 |
WAS107BS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100757 |
WAS107CO-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100758 |
WAS107F-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100759 |
WAS107G-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100760 |
WAS107GM-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100761 |
WAS107IG-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100762 |
WAS107KG-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100763 |
WAS107M-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100764 |
WAS107ME-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100765 |
WAS107MW-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100766 |
WAS107N-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100767 |
WAS107PG-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100768 |
WAS107PW-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |