Query time 0.00072
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": 20,
"filtered": 100,
"index_condition": "cscart_products_categories.product_id in (12928,12921,12929,12910,12911,12915,12919,12931,12932,12933,12934,12935,12936,12937,12938,12939,12940,12941,12942,13031)"
},
"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 |
| 12910 |
1708M |
|
| 12911 |
1708M |
|
| 12915 |
1708M |
|
| 12919 |
1708M |
|
| 12921 |
1708M |
|
| 12928 |
1708M |
|
| 12929 |
1708M |
|
| 12931 |
1704M |
|
| 12932 |
1704M |
|
| 12933 |
1704M |
|
| 12934 |
1704M |
|
| 12935 |
1704M |
|
| 12936 |
1704M |
|
| 12937 |
1704M |
|
| 12938 |
1704M |
|
| 12939 |
1704M |
|
| 12940 |
1704M |
|
| 12941 |
1704M |
|
| 12942 |
1704M |
|
| 13031 |
313M |
|