Query time 0.00234
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "54.77"
},
"grouping_operation": {
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "cscart_products_categories",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"link_type",
"pt"
],
"key": "pt",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"rows_examined_per_scan": 96,
"rows_produced_per_join": 96,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "9.89",
"eval_cost": "9.60",
"prefix_cost": "19.49",
"data_read_per_join": "1K"
},
"used_columns": [
"product_id",
"category_id",
"link_type"
],
"attached_condition": "(`nuie_scalesta_net`.`cscart_products_categories`.`product_id` in (95362,95363,95364,95392,95393,95442,95592,95593,95594,95595,95596,95597,95598,95599,95600,95601,95602,95603,95604,95605,95606,95607,95608,95609,95610,95611,95612,95613,95614,95615,95616,95617,95618,95619,95620,95621,95622,95623,95624,95625,95626,95627,95628,95764,95766,95767,95780,95781,95782,95783,95784,95785,95829,95890,95893,95925,95926,96490,96491,96492,96493,96531,96532,96533,96534,96535,96536,96562,96563,96630,96631,96632,96633,96634,96635,96636,96637,96638,96639,96640,96641,96642,96643,96644,96645,96646,96647,96648,96649,96650,96651,96652,96653,96654,96655,96656))"
}
},
{
"table": {
"table_name": "cscart_categories",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"nuie_scalesta_net.cscart_products_categories.category_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 4,
"filtered": "5.00",
"cost_info": {
"read_cost": "24.00",
"eval_cost": "0.48",
"prefix_cost": "53.09",
"data_read_per_join": "12K"
},
"used_columns": [
"category_id",
"usergroup_ids",
"status",
"storefront_id"
],
"attached_condition": "((`nuie_scalesta_net`.`cscart_categories`.`storefront_id` in (0,1)) 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')))"
}
},
{
"table": {
"table_name": "product_position_source",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"pt"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id",
"product_id"
],
"key_length": "6",
"ref": [
"const",
"nuie_scalesta_net.cscart_products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 4,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.20",
"eval_cost": "0.48",
"prefix_cost": "54.77",
"data_read_per_join": "76"
},
"used_columns": [
"product_id",
"category_id",
"position"
]
}
}
]
}
}
}
Result
| product_id |
category_ids |
position |
| 95362 |
7263M |
0 |
| 95363 |
7263M |
0 |
| 95364 |
7263M |
0 |
| 95392 |
7263M |
0 |
| 95393 |
7263M |
0 |
| 95442 |
7263M |
0 |
| 95592 |
7263M |
0 |
| 95593 |
7263M |
0 |
| 95594 |
7263M |
0 |
| 95595 |
7263M |
0 |
| 95596 |
7263M |
0 |
| 95597 |
7263M |
0 |
| 95598 |
7263M |
0 |
| 95599 |
7263M |
0 |
| 95600 |
7263M |
0 |
| 95601 |
7263M |
0 |
| 95602 |
7263M |
0 |
| 95603 |
7263M |
0 |
| 95604 |
7263M |
0 |
| 95605 |
7263M |
0 |
| 95606 |
7263M |
0 |
| 95607 |
7263M |
0 |
| 95608 |
7263M |
0 |
| 95609 |
7263M |
0 |
| 95610 |
7263M |
0 |
| 95611 |
7263M |
0 |
| 95612 |
7263M |
0 |
| 95613 |
7263M |
0 |
| 95614 |
7263M |
0 |
| 95615 |
7263M |
0 |
| 95616 |
7263M |
0 |
| 95617 |
7263M |
0 |
| 95618 |
7263M |
0 |
| 95619 |
7263M |
0 |
| 95620 |
7263M |
0 |
| 95621 |
7263M |
0 |
| 95622 |
7263M |
0 |
| 95623 |
7263M |
0 |
| 95624 |
7263M |
0 |
| 95625 |
7263M |
0 |
| 95626 |
7263M |
0 |
| 95627 |
7263M |
0 |
| 95628 |
7263M |
0 |
| 95764 |
7263M |
0 |
| 95766 |
7263M |
0 |
| 95767 |
7263M |
0 |
| 95780 |
7263M |
0 |
| 95781 |
7263M |
0 |
| 95782 |
7263M |
0 |
| 95783 |
7263M |
0 |
| 95784 |
7263M |
0 |
| 95785 |
7263M |
0 |
| 95829 |
7263M |
0 |
| 95890 |
7263M |
0 |
| 95893 |
7263M |
0 |
| 95925 |
7263M |
0 |
| 95926 |
7263M |
0 |
| 96490 |
7263M |
0 |
| 96491 |
7263M |
0 |
| 96492 |
7263M |
0 |
| 96493 |
7263M |
0 |
| 96531 |
7263M |
0 |
| 96532 |
7263M |
0 |
| 96533 |
7263M |
0 |
| 96534 |
7263M |
0 |
| 96535 |
7263M |
0 |
| 96536 |
7263M |
0 |
| 96562 |
7263M |
0 |
| 96563 |
7263M |
0 |
| 96630 |
7263M |
0 |
| 96631 |
7263M |
0 |
| 96632 |
7263M |
0 |
| 96633 |
7263M |
0 |
| 96634 |
7263M |
0 |
| 96635 |
7263M |
0 |
| 96636 |
7263M |
0 |
| 96637 |
7263M |
0 |
| 96638 |
7263M |
0 |
| 96639 |
7263M |
0 |
| 96640 |
7263M |
0 |
| 96641 |
7263M |
0 |
| 96642 |
7263M |
0 |
| 96643 |
7263M |
0 |
| 96644 |
7263M |
0 |
| 96645 |
7263M |
0 |
| 96646 |
7263M |
0 |
| 96647 |
7263M |
0 |
| 96648 |
7263M |
0 |
| 96649 |
7263M |
0 |
| 96650 |
7263M |
0 |
| 96651 |
7263M |
0 |
| 96652 |
7263M |
0 |
| 96653 |
7263M |
0 |
| 96654 |
7263M |
0 |
| 96655 |
7263M |
0 |
| 96656 |
7263M |
0 |