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 (8427,7160,8428,8431,9799,8433,8434,8435,8436,8438,8439,8440,8441,8442,7159,8444,8445,8447,8448,8450,10934,7444,7789,7790)"
}
},
{
"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 |
| 7159 |
565M |
|
| 7160 |
565M |
|
| 7444 |
565M |
|
| 7789 |
565M |
|
| 7790 |
565M |
|
| 8427 |
565M |
|
| 8428 |
565M |
|
| 8431 |
565M |
|
| 8433 |
565M |
|
| 8434 |
565M |
|
| 8435 |
565M |
|
| 8436 |
565M |
|
| 8438 |
565M |
|
| 8439 |
565M |
|
| 8440 |
565M |
|
| 8441 |
565M |
|
| 8442 |
565M |
|
| 8444 |
565M |
|
| 8445 |
565M |
|
| 8447 |
565M |
|
| 8448 |
565M |
|
| 8450 |
565M |
|
| 9799 |
565M |
|
| 10934 |
565M |
|