Query time 0.01111
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "28.94"
},
"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": 12,
"rows_produced_per_join": 0,
"filtered": "4.00",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "3.84",
"eval_cost": "0.03",
"prefix_cost": "6.13",
"data_read_per_join": "916"
},
"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": 117,
"rows_produced_per_join": 40,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.10",
"eval_cost": "4.03",
"prefix_cost": "10.27",
"data_read_per_join": "645"
},
"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": "10.08",
"eval_cost": "0.20",
"prefix_cost": "24.38",
"data_read_per_join": "9K"
},
"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.50",
"eval_cost": "0.20",
"prefix_cost": "25.09",
"data_read_per_join": "7K"
},
"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": 3,
"filtered": "9.92",
"cost_info": {
"read_cost": "0.51",
"eval_cost": "0.33",
"prefix_cost": "28.94",
"data_read_per_join": "79"
},
"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 |
| 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 |
| 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 |
| 96857 |
AQVEN6152-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96858 |
AQVEN6153-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96859 |
AQVEN6154-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96860 |
AQVEN6155-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96861 |
AQVEN6156-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96862 |
AQVEN6157-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96863 |
AQVEN6158-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96864 |
AQVEN6159-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96865 |
AQVEN6160-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96866 |
AQVEN6161-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96867 |
AQVEN6162-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96868 |
AQVEN6163-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96869 |
AQVEN6164-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96870 |
AQVEN6165-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96871 |
AQVEN6166-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96872 |
AQVEN6167-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96873 |
AQVEN6168-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96874 |
AQVEN6169-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96875 |
AQVEN6170-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96876 |
AQVEN6171-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96877 |
AQVEN6172-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96878 |
AQVEN6173-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96879 |
AQVEN6174-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96880 |
AQVEN6175-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96881 |
AQVEN6182-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96882 |
AQVEN6183-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96883 |
AQVEN6184-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96884 |
AQVEN6185-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96885 |
AQVEN6186-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96886 |
AQVEN6187-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96887 |
AQVEN6188-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96888 |
AQVEN6192-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96889 |
AQVEN6193-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96890 |
AQVEN6202-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96891 |
AQVEN6206-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96892 |
AQVEN6207-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96893 |
AQVEN6227-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96894 |
AQVEN6228-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96895 |
AQVEN6229-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96896 |
AQVEN6230-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96897 |
AQVEN6231-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96898 |
AQVEN6232-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96899 |
AQVEN6233-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96900 |
AQVEN6234-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96901 |
AQVEN6235-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96902 |
AQVEN6236-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96903 |
AQVEN6237-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96904 |
AQVEN6238-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96905 |
AQVEN6239-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96906 |
AQVEN6240-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96907 |
AQVEN6241-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96908 |
AQVEN6242-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96909 |
AQVEN6243-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96910 |
AQVEN6244-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96911 |
AQVEN6245-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96912 |
AQVEN6246-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96913 |
AQVEN6247-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96914 |
AQVEN6248-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96915 |
AQVEN6249-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96916 |
AQVEN6250-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96920 |
AQVEN8103-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96921 |
AQVEN8104-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96922 |
AQVEN8105-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96923 |
AQVEN8106-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96924 |
AQVEN8107-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96925 |
AQVEN8108-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96926 |
AQVEN8109-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96927 |
AQVEN8110-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96928 |
AQVEN8111-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96929 |
AQVEN8112-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96930 |
AQVEN8113-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96931 |
AQVEN8114-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |