Query time 0.04759
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 |
| 95551 |
238900PIVK-Q |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95552 |
238900QUAD-Q |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95553 |
238900QUADBB-Q |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95554 |
238900QUADK-Q |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95557 |
238EXTBB-Q |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95683 |
ALRM22 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95702 |
AQVEN8101 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95703 |
AQVEN8102 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95944 |
PEK190BB |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96177 |
SY-VOD1000QBP-E8 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96178 |
SY-VOD21 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96179 |
SY-VOD22-B |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96180 |
SY-VOD23-B |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96181 |
SY-VOD25-B |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96182 |
SY-VOD30-B |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96183 |
SY-VOD31-B |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96184 |
SY-VOD32-B |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96185 |
SY-VOD33-B |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96186 |
SY-VOD34-B |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96187 |
SY-VOD36-B |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96188 |
SY-VOD37-B |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96190 |
SY-VOD41-B |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96191 |
SY-VOD900QBP-E8 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96192 |
SY-VOD9080Q-E8 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96193 |
SY-VODA030H |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96194 |
SY-VODA030HC |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96778 |
ACC003-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96779 |
ACC004-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96780 |
ACC006-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96781 |
ADFSP80-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96782 |
ADFSP90-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96783 |
ADHD80-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96784 |
ADHD90-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96785 |
ADSL12-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96786 |
ADSL14-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96787 |
AFCE8080-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96791 |
AQ-SCK-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96792 |
AQBD8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96793 |
AQFSP10-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96794 |
AQFSP10N-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96795 |
AQFSP10NBB-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96796 |
AQFSP10NBP-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96797 |
AQFSP70-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96798 |
AQFSP76-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96799 |
AQFSP80-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96800 |
AQFSP80N-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96801 |
AQFSP80NBB-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96802 |
AQFSP80NBP-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96803 |
AQFSP90-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96804 |
AQFSP90N-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96805 |
AQFSP90NBB-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96806 |
AQFSP90NBP-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96807 |
AQHD70-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96808 |
AQHD76-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96809 |
AQHD80-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96810 |
AQHD80N-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96811 |
AQHD80NBB-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96812 |
AQHD80NBP-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96813 |
AQHD90-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96814 |
AQHD90N-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96815 |
AQHD90NBB-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96816 |
AQHD90NBP-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96817 |
AQSL12N-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96818 |
AQSL12NBB-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96819 |
AQSL12NBP-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96820 |
AQSL14N-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96821 |
AQSL14NBB-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96822 |
AQSL14NBP-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96823 |
AQSL17N-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96824 |
AQSL17NBB-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96825 |
AQSL17NBP-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96826 |
AQSLD14-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96827 |
AQSLD17-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96828 |
AQU10-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96829 |
AQU10N-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96830 |
AQU10NBB-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96831 |
AQU10NBP-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96832 |
AQU128-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96833 |
AQU129-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96834 |
AQU8-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96835 |
AQU9-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96836 |
AQU9N-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96837 |
AQU9NBB-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96838 |
AQU9NBP-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96839 |
AQUD2E-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96840 |
AQUD2R-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96841 |
AQVEN6106-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96848 |
AQVEN6143-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96849 |
AQVEN6144-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96850 |
AQVEN6145-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96851 |
AQVEN6146-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96852 |
AQVEN6147-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96853 |
AQVEN6148-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96854 |
AQVEN6149-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96855 |
AQVEN6150-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96856 |
AQVEN6151-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |