Query time 0.00276
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "57.61"
},
"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": 101,
"rows_produced_per_join": 101,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "10.40",
"eval_cost": "10.10",
"prefix_cost": "20.50",
"data_read_per_join": "1K"
},
"used_columns": [
"product_id",
"category_id",
"link_type"
],
"attached_condition": "(`nuie_scalesta_net`.`cscart_products_categories`.`product_id` in (89938,91504,82840,82913,82986,83400,83410,85302,85399,85450,85501,89759,85348,86655,86656,86724,86725,86516,86792,83293,83300,86486,86487,86762,86763,82619,82620,83422,83423,89762,85093,85179,85225,85271,83221,83226,85327,85424,85475,85526,82847,82848,82920,82921,82993,82994,83477,83478,83485,83486,89800,89852,89924,83065,83618,90901,90980,85133,85373,85076,85077,85162,85163,85208,85209,85254,85255,83035,83036,83307,83592,83593,90871,90872,90950,90951,85116,85117,83573,86485,86654,86723,86761,82628,82629,83493,83494,89748,82618,83421,86624,86625,86693,86694,86519,86795))"
}
},
{
"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": 5,
"filtered": "5.00",
"cost_info": {
"read_cost": "25.25",
"eval_cost": "0.51",
"prefix_cost": "55.85",
"data_read_per_join": "13K"
},
"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": 5,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.26",
"eval_cost": "0.51",
"prefix_cost": "57.61",
"data_read_per_join": "80"
},
"used_columns": [
"product_id",
"category_id",
"position"
]
}
}
]
}
}
}
Result
| product_id |
category_ids |
position |
| 82618 |
7192M |
0 |
| 82619 |
7192M |
0 |
| 82620 |
7192M |
0 |
| 82628 |
7192M |
0 |
| 82629 |
7192M |
0 |
| 82840 |
7192M |
0 |
| 82847 |
7192M |
0 |
| 82848 |
7192M |
0 |
| 82913 |
7192M |
0 |
| 82920 |
7192M |
0 |
| 82921 |
7192M |
0 |
| 82986 |
7192M |
0 |
| 82993 |
7192M |
0 |
| 82994 |
7192M |
0 |
| 83035 |
7192M |
0 |
| 83036 |
7192M |
0 |
| 83065 |
7192M |
0 |
| 83221 |
7192M |
0 |
| 83226 |
7192M |
0 |
| 83293 |
7170,7192M |
0 |
| 83300 |
7170,7192M |
0 |
| 83307 |
7170,7192M |
0 |
| 83400 |
7192M |
0 |
| 83410 |
7170,7192M |
0 |
| 83421 |
7192M |
0 |
| 83422 |
7192M |
0 |
| 83423 |
7192M |
0 |
| 83477 |
7192M |
0 |
| 83478 |
7192M |
0 |
| 83485 |
7192M |
0 |
| 83486 |
7192M |
0 |
| 83493 |
7192M |
0 |
| 83494 |
7192M |
0 |
| 83573 |
7170,7192M |
0 |
| 83592 |
7192M |
0 |
| 83593 |
7192M |
0 |
| 83618 |
7192M |
0 |
| 85076 |
7192M |
0 |
| 85077 |
7192M |
0 |
| 85093 |
7192M |
0 |
| 85116 |
7192M |
0 |
| 85117 |
7192M |
0 |
| 85133 |
7192M |
0 |
| 85162 |
7192M |
0 |
| 85163 |
7192M |
0 |
| 85179 |
7192M |
0 |
| 85208 |
7192M |
0 |
| 85209 |
7192M |
0 |
| 85225 |
7192M |
0 |
| 85254 |
7192M |
0 |
| 85255 |
7192M |
0 |
| 85271 |
7192M |
0 |
| 85302 |
7192M |
0 |
| 85327 |
7192M |
0 |
| 85348 |
7192M |
0 |
| 85373 |
7192M |
0 |
| 85399 |
7192M |
0 |
| 85424 |
7192M |
0 |
| 85450 |
7192M |
0 |
| 85475 |
7192M |
0 |
| 85501 |
7192M |
0 |
| 85526 |
7192M |
0 |
| 86485 |
7192M |
0 |
| 86486 |
7192M |
0 |
| 86487 |
7192M |
0 |
| 86516 |
7192M |
0 |
| 86519 |
7192M |
0 |
| 86624 |
7192M |
0 |
| 86625 |
7192M |
0 |
| 86654 |
7192M |
0 |
| 86655 |
7192M |
0 |
| 86656 |
7192M |
0 |
| 86693 |
7192M |
0 |
| 86694 |
7192M |
0 |
| 86723 |
7192M |
0 |
| 86724 |
7192M |
0 |
| 86725 |
7192M |
0 |
| 86761 |
7192M |
0 |
| 86762 |
7192M |
0 |
| 86763 |
7192M |
0 |
| 86792 |
7192M |
0 |
| 86795 |
7192M |
0 |
| 89748 |
7192M |
0 |
| 89759 |
7192M |
0 |
| 89762 |
7192M |
0 |
| 89800 |
7192M |
0 |
| 89852 |
7192M |
0 |
| 89924 |
7192M |
0 |
| 89938 |
7192M |
0 |
| 90871 |
7192M |
0 |
| 90872 |
7192M |
0 |
| 90901 |
7192M |
0 |
| 90950 |
7192M |
0 |
| 90951 |
7192M |
0 |
| 90980 |
7192M |
0 |
| 91504 |
7192M |
0 |