Query time 0.03364
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 (7257,7258,7259,7260,7261,7262,7265,7309)) 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 |
| 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 |
| 94574 |
BAYC302 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94575 |
BAYC303 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94576 |
BAYC304 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94577 |
BAYC305 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94578 |
BAYC306 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94579 |
BAYC309 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94580 |
BAYC314 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94581 |
BAYC315 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94582 |
BAYC324 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94583 |
BAYC503 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94584 |
BAYC505 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94585 |
BAYC513 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94586 |
BAYC515 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94587 |
BAYC533 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94588 |
BAYC535 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94827 |
RAM832 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94828 |
RAM842 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94829 |
RAM862 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94830 |
RAM932 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94831 |
RAM942 |
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 |
| 94843 |
23701T |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94850 |
238CDOCMS002-N |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94851 |
238CDOCMS003-R |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94852 |
238CDOCMS004-N |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 94853 |
238CDOCMS005 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95309 |
SY-ANGELCIST |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95315 |
SY-TORBO1 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95316 |
SY-TORBO2 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95318 |
SY-TORBO5 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95319 |
SY-TORBO6 |
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 |
| 95369 |
140CFH0900 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95370 |
140CFH1000 |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95371 |
140CFH14CP |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95372 |
140CFH14DF |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |
| 95373 |
140CFH15CP |
Roxor |
0.00000000 |
P |
0 |
N |
N |
N |