Query time 0.01441
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "432.87"
},
"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": 563,
"rows_produced_per_join": 938,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.76",
"eval_cost": "93.83",
"prefix_cost": "96.86",
"data_read_per_join": "14K"
},
"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": 46,
"filtered": "5.00",
"cost_info": {
"read_cost": "140.75",
"eval_cost": "4.69",
"prefix_cost": "331.44",
"data_read_per_join": "225K"
},
"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": 46,
"filtered": "100.00",
"cost_info": {
"read_cost": "7.04",
"eval_cost": "4.69",
"prefix_cost": "343.17",
"data_read_per_join": "178K"
},
"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": 77,
"filtered": "9.92",
"cost_info": {
"read_cost": "11.94",
"eval_cost": "7.72",
"prefix_cost": "432.87",
"data_read_per_join": "1K"
},
"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 |
| 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 |
| 100769 |
WAS107R-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100770 |
WAS110-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100771 |
WAS110B-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100772 |
WAS110BC-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100773 |
WAS110BCO-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100774 |
WAS110BG-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100775 |
WAS110BN-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100776 |
WAS110BS-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100777 |
WAS110CO-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100778 |
WAS110F-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100779 |
WAS110G-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100780 |
WAS110GM-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100781 |
WAS110IG-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100782 |
WAS110KG-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100783 |
WAS110M-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100784 |
WAS110MW-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100785 |
WAS110N-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100786 |
WAS110PG-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100787 |
WAS110PW-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100788 |
WAS110R-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100841 |
WAS308-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100842 |
WAS308BC-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100843 |
WAS308BCO-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100844 |
WAS308BG-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100845 |
WAS308BN-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100846 |
WAS308CO-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100847 |
WAS308G-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100848 |
WAS308N-M |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100856 |
WBL001-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |