Query time 0.00062
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 (21133,21134,21135,21136,21137,21138,21139,21140,21141,21142,21143,21144,21145,21146,21147,21148)"
},
"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 |
| 21133 |
607M |
|
| 21134 |
607M |
|
| 21135 |
607M |
|
| 21136 |
607M |
|
| 21137 |
604M |
|
| 21138 |
604M |
|
| 21139 |
604M |
|
| 21140 |
604M |
|
| 21141 |
604M |
|
| 21142 |
604M |
|
| 21143 |
604M |
|
| 21144 |
604M |
|
| 21145 |
604M |
|
| 21146 |
604M |
|
| 21147 |
604M |
|
| 21148 |
604M |
|