Query time 0.00061
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": 31,
"filtered": 100,
"index_condition": "cscart_products_categories.product_id in (5390,5388,5387,5386,5389,5384,5385,6685,6759,6712,6677,6697,6736,6693,6761,6762,6681,6710,6701,6689,6737,6763,6760,6709)"
},
"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", "rfswire_cart.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": ["rfswire_cart.cscart_products_categories.category_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "cscart_categories.company_id = 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 |
| 5384 |
3356M |
0 |
| 5385 |
3356M |
0 |
| 5386 |
3356M |
0 |
| 5387 |
3356M |
0 |
| 5388 |
3356M |
0 |
| 5389 |
3356M |
0 |
| 5390 |
3356M |
0 |
| 6677 |
3356M |
0 |
| 6681 |
3356M |
0 |
| 6685 |
3356M |
0 |
| 6689 |
3356M |
0 |
| 6693 |
3356M |
0 |
| 6697 |
3356M |
0 |
| 6701 |
3356M |
0 |
| 6709 |
3356M |
0 |
| 6710 |
3356M |
0 |
| 6712 |
3356M |
0 |
| 6736 |
3356M |
0 |
| 6737 |
3356M |
0 |
| 6759 |
3356M |
0 |
| 6760 |
3356M |
0 |
| 6761 |
3356M |
0 |
| 6762 |
3356M |
0 |
| 6763 |
3356M |
0 |