Query time 0.00073
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.112916882,
"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": 32,
"cost": 0.02696472,
"filtered": 100,
"attached_condition": "cscart_products_categories.product_id in (14096,14108,14094,14047,14082,14058,14107,14081,14115,14114,14113,14046,14104,14074,14662,14073,14072,14099,14098,14071,14133,14106,14070,14045)",
"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": 32,
"rows": 1,
"cost": 0.03189888,
"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": 32,
"rows": 1,
"cost": 0.03353728,
"filtered": 100
}
}
]
}
}
Result
| product_id |
category_ids |
position |
| 14045 |
644M |
0 |
| 14046 |
644M |
0 |
| 14047 |
644M |
0 |
| 14058 |
644M |
0 |
| 14070 |
644M |
0 |
| 14071 |
644M |
0 |
| 14072 |
644M |
0 |
| 14073 |
644M |
0 |
| 14074 |
644M |
0 |
| 14081 |
644M |
0 |
| 14082 |
644M |
0 |
| 14094 |
644M |
0 |
| 14096 |
644M |
0 |
| 14098 |
644M |
0 |
| 14099 |
644M |
0 |
| 14104 |
644M |
0 |
| 14106 |
644M |
0 |
| 14107 |
644M |
0 |
| 14108 |
644M |
0 |
| 14113 |
644M |
0 |
| 14114 |
644M |
0 |
| 14115 |
644M |
0 |
| 14133 |
644,1393,1395,1406M |
0 |
| 14662 |
646,925,1125,1395,1669,1396M |
|