Query time 0.04130
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "707.18"
},
"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": 1751,
"rows_produced_per_join": 1250,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.64",
"eval_cost": "125.07",
"prefix_cost": "127.97",
"data_read_per_join": "19K"
},
"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": 62,
"filtered": "5.00",
"cost_info": {
"read_cost": "312.68",
"eval_cost": "6.25",
"prefix_cost": "565.72",
"data_read_per_join": "299K"
},
"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": 62,
"filtered": "100.00",
"cost_info": {
"read_cost": "15.63",
"eval_cost": "6.25",
"prefix_cost": "587.61",
"data_read_per_join": "238K"
},
"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": 102,
"filtered": "9.92",
"cost_info": {
"read_cost": "15.92",
"eval_cost": "10.29",
"prefix_cost": "707.18",
"data_read_per_join": "2K"
},
"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 |
| 93190 |
DFF294LCM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93191 |
DFF294LCM2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93192 |
DFF294LSB2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93193 |
DFF294LSW2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93194 |
DFF295LCM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93195 |
DFF296LCM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93196 |
DFF393LBG2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93197 |
DFF393LCM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93198 |
DFF393LCM2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93199 |
DFF393LSB2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93200 |
DFF393LSW2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93201 |
DFF394LBG2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93202 |
DFF394LCM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93203 |
DFF394LCM2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93204 |
DFF394LSB2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93205 |
DFF394LSW2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93206 |
DFF395LCM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93207 |
DFF396LCM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93208 |
DFF893LBG2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93209 |
DFF893LCM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93210 |
DFF893LCM2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93211 |
DFF893LSB2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93212 |
DFF893LSW2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93213 |
DFF894LBG2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93214 |
DFF894LCM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93215 |
DFF894LCM2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93216 |
DFF894LSB2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93217 |
DFF894LSW2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93218 |
DFF895LCM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93219 |
DFF896LCM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93220 |
DPF1493LBG2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93221 |
DPF1493LCM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93222 |
DPF1493LCM2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93223 |
DPF1493LSB2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93224 |
DPF1493LSW2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93225 |
DPF1494LBG2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93226 |
DPF1494LCM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93227 |
DPF1494LCM2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93228 |
DPF1494LSB2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93229 |
DPF1494LSW2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93230 |
DPF1495LCM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93231 |
DPF1496LCM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93232 |
DPF193LBG2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93233 |
DPF193LCM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93234 |
DPF193LCM2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93235 |
DPF193LSB2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93236 |
DPF193LSW2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93237 |
DPF194LBG2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93238 |
DPF194LCM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93239 |
DPF194LCM2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93240 |
DPF194LSB2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93241 |
DPF194LSW2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93242 |
DPF195LCM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93243 |
DPF196LCM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93244 |
DPF293LBG2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93245 |
DPF293LCM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93246 |
DPF293LCM2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93247 |
DPF293LSB2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93248 |
DPF293LSW2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93249 |
DPF294LBG2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93250 |
DPF294LCM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93251 |
DPF294LCM2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93252 |
DPF294LSB2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93253 |
DPF294LSW2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93254 |
DPF295LCM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93255 |
DPF296LCM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93256 |
DPF393LBG2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93257 |
DPF393LCM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93258 |
DPF393LCM2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93259 |
DPF393LSB2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93260 |
DPF393LSW2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93261 |
DPF394LBG2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93262 |
DPF394LCM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93263 |
DPF394LCM2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93264 |
DPF394LSB2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93265 |
DPF394LSW2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93266 |
DPF395LCM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93267 |
DPF396LCM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93268 |
DPF893LBG2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93269 |
DPF893LCM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93270 |
DPF893LCM2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93271 |
DPF893LSB2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93272 |
DPF893LSW2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93273 |
DPF894LBG2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93274 |
DPF894LCM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93275 |
DPF894LCM2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93276 |
DPF894LSB2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93277 |
DPF894LSW2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93278 |
DPF895LCM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93279 |
DPF896LCM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93362 |
HAV2204LBG2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93363 |
HAV2204LCM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93364 |
HAV2204LCM2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93365 |
HAV2204LSB2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93366 |
HAV2204LSW2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93367 |
HAV2206LCM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |