Query time 0.00410
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "82.13"
},
"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": 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": "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": 198,
"rows_produced_per_join": 141,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.23",
"eval_cost": "14.14",
"prefix_cost": "16.64",
"data_read_per_join": "2K"
},
"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": 7,
"filtered": "5.00",
"cost_info": {
"read_cost": "35.36",
"eval_cost": "0.71",
"prefix_cost": "66.14",
"data_read_per_join": "33K"
},
"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": 7,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.77",
"eval_cost": "0.71",
"prefix_cost": "68.61",
"data_read_per_join": "26K"
},
"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": 11,
"filtered": "9.92",
"cost_info": {
"read_cost": "1.80",
"eval_cost": "1.16",
"prefix_cost": "82.13",
"data_read_per_join": "279"
},
"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 |
| 95487 |
2381400SLIDEK-Q |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95494 |
2381500SLIDE-Q |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95495 |
2381500SLIDEBB-Q |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95496 |
2381500SLIDEK-Q |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95505 |
2381600SLIDEBB-Q |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95506 |
2381600SLIDEK-Q |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95509 |
2381700SLIDEBB-Q |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95510 |
2381700SLIDEK-Q |
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 |
| 96785 |
ADSL12-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96786 |
ADSL14-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 |
| 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 |
| 96969 |
AQVEN8159-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96970 |
AQVEN8160-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96971 |
AQVEN8161-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96972 |
AQVEN8162-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96973 |
AQVEN8163-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96974 |
AQVEN8164-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96975 |
AQVEN8165-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96976 |
AQVEN8166-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96977 |
AQVEN8167-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96978 |
AQVEN8168-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96979 |
AQVEN8169-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 96980 |
AQVEN8170-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98516 |
ERSL12-E5-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98891 |
M1000SS-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98894 |
M1100SS-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98895 |
M1200SS-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 98896 |
M1400SS-E8-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100248 |
SMSL10-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100249 |
SMSL10BB-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100250 |
SMSL10BP-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100254 |
SMSL12-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100255 |
SMSL12BB-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100256 |
SMSL12BP-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100257 |
SMSL14-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100258 |
SMSL14BB-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100259 |
SMSL14BP-E6-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100328 |
SQSL10-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100329 |
SQSL10BB-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100330 |
SQSL10BP-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100335 |
SQSL12BB-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100336 |
SQSL14BP-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100438 |
SY-VOD01-B-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100439 |
SY-VOD03-B-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100440 |
SY-VOD04-B-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100441 |
SY-VOD05-B-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100442 |
SY-VOD06-B-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100443 |
SY-VOD07-B-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 100444 |
SY-VOD08-B-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101536 |
SQSL12-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101537 |
SQSL12BP-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101538 |
SQSL14-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 101539 |
SQSL14BB-P |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |