Query time 0.03655
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "62.56"
},
"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": "12.50",
"cost_info": {
"read_cost": "2.20",
"eval_cost": "0.06",
"prefix_cost": "2.26",
"data_read_per_join": "3K"
},
"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": 31,
"rows_produced_per_join": 0,
"filtered": "4.00",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "8.66",
"eval_cost": "0.08",
"prefix_cost": "11.00",
"data_read_per_join": "2K"
},
"used_columns": [
"category_id",
"usergroup_ids",
"status",
"storefront_id"
],
"attached_condition": "((`nuie_scalesta_net`.`cscart_categories`.`category_id` in (7148,7149,7150,7151,7152,7160,7161,7162,7227,7156,7157,7194,7218,7158,7159,7247,7263,7163,7164,7207,7208,7224,7243,7225,7283,7266,7267,7313,7314,7342,7348)) 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": 91,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.23",
"eval_cost": "9.12",
"prefix_cost": "20.35",
"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": 4,
"filtered": "5.00",
"cost_info": {
"read_cost": "22.79",
"eval_cost": "0.46",
"prefix_cost": "52.25",
"data_read_per_join": "21K"
},
"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": 4,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.14",
"eval_cost": "0.46",
"prefix_cost": "53.85",
"data_read_per_join": "17K"
},
"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": 7,
"filtered": "9.92",
"cost_info": {
"read_cost": "1.16",
"eval_cost": "0.75",
"prefix_cost": "62.56",
"data_read_per_join": "179"
},
"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 |
| 94617 |
BAYF147 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94618 |
BAYF148 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94619 |
BAYF149 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94620 |
BAYF149B |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94621 |
BAYF150 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94622 |
BAYF150B |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94623 |
BAYF151 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94624 |
BAYF151B |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94625 |
BAYF152 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94626 |
BAYF152B |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94627 |
BAYF154 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94628 |
BAYF154B |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94629 |
BAYF155 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94630 |
BAYF155B |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94631 |
BAYF156 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94632 |
BAYF156B |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94633 |
BAYF157 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94634 |
BAYF157B |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94635 |
BAYF167 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94636 |
BAYF167B |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94637 |
BAYF168 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94638 |
BAYF168B |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94639 |
BAYF169 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94640 |
BAYF170 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94654 |
BAYF434 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94655 |
BAYF437 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94656 |
BAYF440 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94657 |
BAYF443 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94658 |
BAYF446 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94666 |
BAYF834 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94667 |
BAYF837 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94668 |
BAYF840 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94669 |
BAYF843 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94670 |
BAYF846 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94671 |
BAYF867 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94672 |
BAYF867B |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94673 |
BAYF868 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94674 |
BAYF868B |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94694 |
BAYS201 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94695 |
BAYS202 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94696 |
BAYS203 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94697 |
BAYS204 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94698 |
BAYS205 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94699 |
BAYS206 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94700 |
BAYS207 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94701 |
BAYS209 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94702 |
BAYS210 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94707 |
BAYS351 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94708 |
BAYS352 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94750 |
BAYW006 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94751 |
BAYW011 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94752 |
BAYW012 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94753 |
BAYW014 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94754 |
BAYW017 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94755 |
BAYW018 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94756 |
BAYW019 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94757 |
BAYW020 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94758 |
BAYW021 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94759 |
BAYW022 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94760 |
BAYW113 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94761 |
BAYW413 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94762 |
BAYW421 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94763 |
BAYW422 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94764 |
BAYW821 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94765 |
BAYW822 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94816 |
PDT-000601 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94822 |
PP836 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94839 |
140CFH16CP |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94840 |
140FH21 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94841 |
142FE0204 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94844 |
237201-N |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94845 |
237202 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94846 |
237203 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94847 |
237204 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94848 |
237COMFORTRINGWH |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94950 |
626049IHM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94951 |
626497 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94952 |
697SON04 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94953 |
87710 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94954 |
88210 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94955 |
88310 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94958 |
AQVEN6106 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95310 |
SY-ANGELSEAT |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95311 |
SY-ANGELSEATDELUXE |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95314 |
SY-CURVEBP |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95317 |
SY-TORBO3 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95319 |
SY-TORBO6 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95320 |
SY-TORBO7 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95361 |
00795822310 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95362 |
00795900110 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95363 |
00795900310 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95364 |
00795901210 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95365 |
140CFE08WH |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95366 |
140CFE09WH |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95367 |
140CFE10WH |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95368 |
140CFH0800 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |