Query time 0.00232
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 (92652,92653,92654,92655,92656,92657,92658,92659,92660,92661,92662,92663,92664,92665,92672,92673,92674,92675,92676,92677,92678,92679,92680,92681,92682,92683,92684,92685,92686,92687,92688,92695,92696,92697,92698,92699,92700,92701,92702,92703,92704,92705,92706,92707,92708,92709,92710,92711,92712,92713,92714,92715,92716,92717,92718,92719,92720,92721,92722,92723,92724,92725,92726,92727,92728,92729,92730,92731,92732,92733,92734,92741,92742,92743,92744,92745,92746,92747,92748,92749,92750,92751,92752,92753,92754,92755,92756,92757,92758,92759,92760,92761,92762,92763,92764,92765))"
}
},
{
"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 |
| 92652 |
7192M |
0 |
| 92653 |
7192M |
0 |
| 92654 |
7192M |
0 |
| 92655 |
7192M |
0 |
| 92656 |
7192M |
0 |
| 92657 |
7192M |
0 |
| 92658 |
7192M |
0 |
| 92659 |
7192M |
0 |
| 92660 |
7192M |
0 |
| 92661 |
7192M |
0 |
| 92662 |
7192M |
0 |
| 92663 |
7192M |
0 |
| 92664 |
7192M |
0 |
| 92665 |
7192M |
0 |
| 92672 |
7192M |
0 |
| 92673 |
7192M |
0 |
| 92674 |
7192M |
0 |
| 92675 |
7192M |
0 |
| 92676 |
7192M |
0 |
| 92677 |
7192M |
0 |
| 92678 |
7192M |
0 |
| 92679 |
7192M |
0 |
| 92680 |
7192M |
0 |
| 92681 |
7192M |
0 |
| 92682 |
7192M |
0 |
| 92683 |
7192M |
0 |
| 92684 |
7192M |
0 |
| 92685 |
7192M |
0 |
| 92686 |
7192M |
0 |
| 92687 |
7192M |
0 |
| 92688 |
7192M |
0 |
| 92695 |
7192M |
0 |
| 92696 |
7192M |
0 |
| 92697 |
7192M |
0 |
| 92698 |
7192M |
0 |
| 92699 |
7192M |
0 |
| 92700 |
7192M |
0 |
| 92701 |
7192M |
0 |
| 92702 |
7192M |
0 |
| 92703 |
7192M |
0 |
| 92704 |
7192M |
0 |
| 92705 |
7192M |
0 |
| 92706 |
7192M |
0 |
| 92707 |
7192M |
0 |
| 92708 |
7192M |
0 |
| 92709 |
7192M |
0 |
| 92710 |
7192M |
0 |
| 92711 |
7192M |
0 |
| 92712 |
7192M |
0 |
| 92713 |
7192M |
0 |
| 92714 |
7192M |
0 |
| 92715 |
7192M |
0 |
| 92716 |
7192M |
0 |
| 92717 |
7192M |
0 |
| 92718 |
7192M |
0 |
| 92719 |
7192M |
0 |
| 92720 |
7192M |
0 |
| 92721 |
7192M |
0 |
| 92722 |
7192M |
0 |
| 92723 |
7192M |
0 |
| 92724 |
7192M |
0 |
| 92725 |
7192M |
0 |
| 92726 |
7192M |
0 |
| 92727 |
7192M |
0 |
| 92728 |
7192M |
0 |
| 92729 |
7192M |
0 |
| 92730 |
7192M |
0 |
| 92731 |
7192M |
0 |
| 92732 |
7192M |
0 |
| 92733 |
7192M |
0 |
| 92734 |
7192M |
0 |
| 92741 |
7192M |
0 |
| 92742 |
7192M |
0 |
| 92743 |
7192M |
0 |
| 92744 |
7192M |
0 |
| 92745 |
7192M |
0 |
| 92746 |
7192M |
0 |
| 92747 |
7192M |
0 |
| 92748 |
7192M |
0 |
| 92749 |
7192M |
0 |
| 92750 |
7192M |
0 |
| 92751 |
7192M |
0 |
| 92752 |
7192M |
0 |
| 92753 |
7192M |
0 |
| 92754 |
7192M |
0 |
| 92755 |
7192M |
0 |
| 92756 |
7192M |
0 |
| 92757 |
7192M |
0 |
| 92758 |
7192M |
0 |
| 92759 |
7192M |
0 |
| 92760 |
7192M |
0 |
| 92761 |
7192M |
0 |
| 92762 |
7192M |
0 |
| 92763 |
7192M |
0 |
| 92764 |
7192M |
0 |
| 92765 |
7192M |
0 |