Query time 0.04767
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "19.55"
},
"ordering_operation": {
"using_filesort": true,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"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": 8,
"rows_produced_per_join": 0,
"filtered": "4.00",
"cost_info": {
"read_cost": "3.58",
"eval_cost": "0.03",
"prefix_cost": "3.62",
"data_read_per_join": "855"
},
"used_columns": [
"category_id",
"usergroup_ids",
"status",
"storefront_id"
],
"attached_condition": "((`nuie_scalesta_net`.`cscart_categories`.`category_id` in (7211,7212,7214,7282,7320,7321,7346,7347)) 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": "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",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "0.70",
"eval_cost": "0.02",
"prefix_cost": "4.34",
"data_read_per_join": "1K"
},
"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": [
"nuie_scalesta_net.cscart_categories.category_id"
],
"rows_examined_per_scan": 117,
"rows_produced_per_join": 26,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.07",
"eval_cost": "2.69",
"prefix_cost": "7.10",
"data_read_per_join": "430"
},
"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": 1,
"filtered": "5.00",
"cost_info": {
"read_cost": "6.72",
"eval_cost": "0.13",
"prefix_cost": "16.51",
"data_read_per_join": "6K"
},
"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": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.34",
"eval_cost": "0.13",
"prefix_cost": "16.98",
"data_read_per_join": "5K"
},
"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": 2,
"filtered": "9.92",
"cost_info": {
"read_cost": "0.34",
"eval_cost": "0.22",
"prefix_cost": "19.55",
"data_read_per_join": "53"
},
"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 |
| 93353 |
FFB615 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93354 |
FFB633 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93355 |
FFB635 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93750 |
MFB222 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93751 |
MFB228 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93752 |
MFB234 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93794 |
NCK101 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93848 |
NVM063 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93849 |
NVM065 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93886 |
SBM103 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93887 |
SBM105 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93888 |
SBM111L |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93889 |
SBM111R |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93890 |
SBM903 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93891 |
SBM905 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93892 |
SBM911L |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93893 |
SBM911R |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94484 |
BAYC001 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94486 |
BAYC003 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94487 |
BAYC004 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94488 |
BAYC005 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94489 |
BAYC006 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94490 |
BAYC007 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94491 |
BAYC008 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94493 |
BAYC010 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94494 |
BAYC013 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94496 |
BAYC015 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94499 |
BAYC018 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94501 |
BAYC020 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94505 |
BAYC024 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94506 |
BAYC025 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94507 |
BAYC026 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94509 |
BAYC101 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94511 |
BAYC103 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94512 |
BAYC104 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94513 |
BAYC105 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94515 |
BAYC107 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94516 |
BAYC201 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94517 |
BAYC202 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94518 |
BAYC203 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94519 |
BAYC204 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94520 |
BAYC205 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94521 |
BAYC206 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94522 |
BAYC221 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94523 |
BAYC222 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94524 |
BAYC223 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94525 |
BAYC224 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94526 |
BAYC225 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94527 |
BAYC226 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94528 |
BAYC227 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94529 |
BAYC228 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94530 |
BAYC229 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94531 |
BAYC230 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94532 |
BAYC231 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94533 |
BAYC232 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94534 |
BAYC233 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94535 |
BAYC234 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94536 |
BAYC235 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94537 |
BAYC236 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94538 |
BAYC237 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94539 |
BAYC238 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94540 |
BAYC239 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94541 |
BAYC240 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94542 |
BAYC241 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94543 |
BAYC242 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94544 |
BAYC243 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94545 |
BAYC244 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94546 |
BAYC245 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94547 |
BAYC246 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94548 |
BAYC247 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94549 |
BAYC248 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94550 |
BAYC249 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94551 |
BAYC250 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94552 |
BAYC251 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94553 |
BAYC252 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94554 |
BAYC253 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94555 |
BAYC254 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94556 |
BAYC255 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94557 |
BAYC256 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94558 |
BAYC257 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94559 |
BAYC258 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94560 |
BAYC259 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94561 |
BAYC260 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94562 |
BAYC261 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94563 |
BAYC262 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94564 |
BAYC263 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94565 |
BAYC264 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94566 |
BAYC265 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94567 |
BAYC266 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94568 |
BAYC267 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94569 |
BAYC268 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94570 |
BAYC269 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94571 |
BAYC270 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94572 |
BAYC271 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94573 |
BAYC301 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94575 |
BAYC303 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |