Query time 0.00056
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.092277363,
"nested_loop": [
{
"table": {
"table_name": "cscart_products_categories",
"access_type": "range",
"possible_keys": ["PRIMARY", "pt"],
"key": "pt",
"key_length": "3",
"used_key_parts": ["product_id"],
"loops": 1,
"rows": 24,
"cost": 0.02579124,
"filtered": 100,
"attached_condition": "cscart_products_categories.product_id in (13439,13440,13441,13442,13443,13444,13445,13446,13447,13448,13449,13450,13451,13452,13453,13454,13455,13456,13457,13458,13459,13460,13461,13462)",
"using_index": true
}
},
{
"table": {
"table_name": "cscart_categories",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "c_status", "p_category_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["category_id"],
"ref": ["u508912950_dev_2025.cscart_products_categories.category_id"],
"loops": 24,
"rows": 1,
"cost": 0.02474336,
"filtered": 100,
"attached_condition": "cscart_categories.storefront_id in (0,1) and (cscart_categories.usergroup_ids = '' or find_in_set(0,cscart_categories.usergroup_ids) or find_in_set(1,cscart_categories.usergroup_ids)) and cscart_categories.`status` in ('A','H')"
}
},
{
"table": {
"table_name": "product_position_source",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "pt"],
"key": "PRIMARY",
"key_length": "6",
"used_key_parts": ["category_id", "product_id"],
"ref": [
"const",
"u508912950_dev_2025.cscart_products_categories.product_id"
],
"loops": 24,
"rows": 1,
"cost": 0.02638176,
"filtered": 100
}
}
]
}
}
Result
| product_id |
category_ids |
position |
| 13439 |
1632M |
0 |
| 13440 |
1632M |
0 |
| 13441 |
1632M |
0 |
| 13442 |
1632M |
0 |
| 13443 |
1632M |
0 |
| 13444 |
1632M |
0 |
| 13445 |
1632M |
0 |
| 13446 |
1632M |
0 |
| 13447 |
1632M |
0 |
| 13448 |
1632M |
0 |
| 13449 |
1632M |
0 |
| 13450 |
1632M |
0 |
| 13451 |
1632M |
0 |
| 13452 |
1632M |
0 |
| 13453 |
1632M |
0 |
| 13454 |
1632M |
0 |
| 13455 |
1632M |
0 |
| 13456 |
1632M |
0 |
| 13457 |
1632M |
0 |
| 13458 |
1632M |
0 |
| 13459 |
1632M |
0 |
| 13460 |
1632M |
0 |
| 13461 |
1632M |
0 |
| 13462 |
1632M |
0 |