Query time 0.00077
JSON explain
{
"query_block": {
"select_id": 1,
"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"],
"rows": 24,
"filtered": 100,
"index_condition": "cscart_products_categories.product_id in (6682,6695,6696,11104,6692,8688,6697,6698,6699,6700,6701,6702,6703,6705,6707,6708,6709,6710,6714,6706,6716,6717,6718,6715)"
}
},
{
"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": ["lillyshop_lillyshop.cscart_products_categories.category_id"],
"rows": 1,
"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",
"lillyshop_lillyshop.cscart_products_categories.product_id"
],
"rows": 1,
"filtered": 100
}
}
]
}
}
Result
| product_id |
category_ids |
position |
| 6682 |
435M |
|
| 6692 |
435M |
|
| 6695 |
435M |
|
| 6696 |
435M |
|
| 6697 |
435M |
|
| 6698 |
435M |
|
| 6699 |
435M |
|
| 6700 |
435M |
|
| 6701 |
435M |
|
| 6702 |
435M |
|
| 6703 |
435M |
|
| 6705 |
435M |
|
| 6706 |
435M |
|
| 6707 |
435M |
|
| 6708 |
435M |
|
| 6709 |
435M |
|
| 6710 |
435M |
|
| 6714 |
435M |
|
| 6715 |
435M |
|
| 6716 |
435M |
|
| 6717 |
435M |
|
| 6718 |
435M |
|
| 8688 |
435M |
|
| 11104 |
435M |
|