Query time 0.00044
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 (19853,19854,19855,19856,19857,19858,19859,19860,19861,19862,19863,19864,19865,19866,19867,19868)"
},
"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 |
| 19853 |
546M |
|
| 19854 |
546M |
|
| 19855 |
579M |
|
| 19856 |
579M |
|
| 19857 |
525M |
|
| 19858 |
525M |
|
| 19859 |
525M |
|
| 19860 |
525M |
|
| 19861 |
525M |
|
| 19862 |
525M |
|
| 19863 |
525M |
|
| 19864 |
525M |
|
| 19865 |
525M |
|
| 19866 |
525M |
|
| 19867 |
525M |
|
| 19868 |
525M |
|