Query time 0.00060
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": 16,
"filtered": 100,
"index_condition": "cscart_products_categories.product_id in (18749,18750,18751,18752,18753,18754,18755,18756,18757,18758,18759,18760,18761,18762,18763,18764)"
},
"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", "devmotorsbay.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": ["devmotorsbay.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 |
| 18749 |
598M |
|
| 18750 |
598M |
|
| 18751 |
598M |
|
| 18752 |
598M |
|
| 18753 |
598M |
|
| 18754 |
516M |
|
| 18755 |
516M |
|
| 18756 |
516M |
|
| 18757 |
516M |
|
| 18758 |
516M |
|
| 18759 |
516M |
|
| 18760 |
516M |
|
| 18761 |
516M |
|
| 18762 |
516M |
|
| 18763 |
516M |
|
| 18764 |
516M |
|