Query time 0.00057
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": 24,
"filtered": 100,
"index_condition": "cscart_products_categories.product_id in (5522,5492,5497,5494,5510,5495,5499,5520,5488,5487,5490,5507,5496,5493,5508,5500,5491,5498,5504,5506,5489,5505,5509,5502)"
},
"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 |
| 5487 |
3357M |
0 |
| 5488 |
3357M |
0 |
| 5489 |
3357M |
0 |
| 5490 |
3357M |
0 |
| 5491 |
3357M |
0 |
| 5492 |
3357M |
0 |
| 5493 |
3357M |
0 |
| 5494 |
3357M |
0 |
| 5495 |
3357M |
0 |
| 5496 |
3357M |
0 |
| 5497 |
3357M |
0 |
| 5498 |
3357M |
0 |
| 5499 |
3357M |
0 |
| 5500 |
3357M |
0 |
| 5502 |
3357M |
0 |
| 5504 |
3357M |
0 |
| 5505 |
3357M |
0 |
| 5506 |
3357M |
0 |
| 5507 |
3357M |
0 |
| 5508 |
3357M |
0 |
| 5509 |
3357M |
0 |
| 5510 |
3357M |
0 |
| 5520 |
3357M |
0 |
| 5522 |
3357M |
0 |