Query time 0.04299
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "35.61"
},
"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": 15,
"rows_produced_per_join": 0,
"filtered": "4.00",
"using_join_buffer": "hash join",
"cost_info": {
"read_cost": "4.79",
"eval_cost": "0.04",
"prefix_cost": "7.10",
"data_read_per_join": "1K"
},
"used_columns": [
"category_id",
"usergroup_ids",
"status",
"storefront_id"
],
"attached_condition": "((`nuie_scalesta_net`.`cscart_categories`.`category_id` in (7195,7196,7222,7251,7252,7253,7254,7284,7285,7286,7287,7316,7317,7330,7331)) 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": 50,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.13",
"eval_cost": "5.04",
"prefix_cost": "12.27",
"data_read_per_join": "806"
},
"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": "12.60",
"eval_cost": "0.25",
"prefix_cost": "29.91",
"data_read_per_join": "12K"
},
"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.63",
"eval_cost": "0.25",
"prefix_cost": "30.79",
"data_read_per_join": "9K"
},
"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": 4,
"filtered": "9.92",
"cost_info": {
"read_cost": "0.64",
"eval_cost": "0.41",
"prefix_cost": "35.61",
"data_read_per_join": "99"
},
"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 |
| 93787 |
NBA810 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93788 |
NBI1812 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93798 |
NFB150 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93799 |
NFB151 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93800 |
NFB152 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93801 |
NFB156 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93802 |
NFB157 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93803 |
NFB158 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93804 |
NFB160 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93805 |
NFB161 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93806 |
NFB163 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93807 |
NFB164 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93808 |
NFB167 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93809 |
NFB170 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93810 |
NFB171 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93811 |
NFB177 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93812 |
NFB178 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93813 |
NFB179 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93814 |
NFB180 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93815 |
NFB182 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93816 |
NFB183 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93817 |
NFB184 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93818 |
NFB185 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93832 |
NSBS27 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93833 |
NSBS78 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93834 |
NSK801S |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93835 |
NSK802S |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93836 |
NSS17 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93837 |
NSSQ7FL |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93838 |
NSSQ7FLBB |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93839 |
NSSQ7FLBP |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93840 |
NSSQBFC |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93841 |
NSSQGM |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93882 |
SBATH13 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93883 |
SBATH14 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93884 |
SBATH15 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 93885 |
SBATH16 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94367 |
SBDE006 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94368 |
SBDE007 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94369 |
SBDE008 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94370 |
SBDE009 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94371 |
SBDE010 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94372 |
SBDE011 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94373 |
SBSE008 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94374 |
SBSE009 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94375 |
SBSE010 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94376 |
SBSE013 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94377 |
SBSE014 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94378 |
SBSE015 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94379 |
SBSE017 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94380 |
NFB159 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94438 |
BAA001 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94463 |
BAYB101 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94464 |
BAYB102 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94465 |
BAYB103 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94466 |
BAYB104 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94467 |
BAYB105 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94468 |
BAYB106 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94469 |
BAYB107 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94470 |
BAYB108 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94471 |
BAYB109 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94472 |
BAYB112 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94473 |
BAYB113 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94474 |
BAYB114 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94475 |
BAYB115 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94476 |
BAYB116 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94477 |
BAYB117 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94478 |
BAYB118 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94479 |
BAYB119 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94480 |
BAYB120 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94481 |
BAYB121 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94482 |
BAYB122 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94483 |
BAYB125 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94589 |
BAYE201 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94590 |
BAYE203 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94591 |
BAYE204 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94811 |
NFB189 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94812 |
NFB190 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94820 |
PP406 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94821 |
PP718 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94959 |
AQVEN6121 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94960 |
AQVEN6130 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94961 |
AQVEN6135 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94962 |
AQVEN6137 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94963 |
AQVEN6139 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94964 |
AQVEN6140 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95360 |
SY-ZB15RS |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95394 |
237BK2BCSS |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95395 |
237BK2BCSSTB |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95396 |
237BK2CSS |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95397 |
237BK2CSSNB |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95398 |
237BK2CSSTB |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95399 |
237BLA15 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95400 |
237BLA16 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95401 |
237BLA17 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95424 |
237BS2FCSS1 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |