Query time 0.00092
JSON explain
{
"query_block": {
"select_id": 1,
"table": {
"table_name": "cscart_products_categories",
"access_type": "range",
"possible_keys": ["PRIMARY", "pt"],
"key": "pt",
"key_length": "3",
"used_key_parts": ["product_id"],
"rows": 65,
"filtered": 100,
"index_condition": "cscart_products_categories.product_id in (17679,17772,17773,17774,17775,17776,17777,17778,17779,17780,17781,17782,17783,13091,12551,15800,12593,12588,15938,13152)"
},
"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",
"noframes_angrybeaver.cscart_products_categories.product_id"
],
"rows": 1,
"filtered": 100
},
"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": ["noframes_angrybeaver.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')"
}
}
}
Result
| product_id |
category_ids |
position |
| 12551 |
267,270M |
|
| 12588 |
285,1760,270M |
|
| 12593 |
267,1760,270M |
|
| 13091 |
1760,285,270M |
|
| 13152 |
667M |
|
| 15800 |
285,270,267M |
|
| 15938 |
272M |
|
| 17679 |
1690M |
|
| 17772 |
1759M |
|
| 17773 |
1759M |
|
| 17774 |
1759M |
|
| 17775 |
1759M |
|
| 17776 |
1752M |
|
| 17777 |
1752M |
|
| 17778 |
1752M |
|
| 17779 |
1752M |
|
| 17780 |
1752M |
|
| 17781 |
1752M |
|
| 17782 |
1752M |
|
| 17783 |
1752M |
|