Query time 0.00139
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": 122,
"filtered": 100,
"attached_condition": "cscart_products_categories.product_id in (64684,61166,62171,61048,61322,64726,64697,64690,65096,61937,64716,62057,64722,64737,64710,64365,64732,64771,64742,62272,64747,62449,64764,61428)",
"using_index": true
},
"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", "cscart_migrate.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": ["cscart_migrate.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 |
| 61048 |
1542,1621,1701,1889M |
0 |
| 61166 |
1542,1701,1889M |
0 |
| 61322 |
1542,1547,1701,1756,1827,1883,1889M |
0 |
| 61428 |
1542,1701,1760,1889M |
0 |
| 61937 |
1542,1613,1701,1748,1889M |
0 |
| 62057 |
1542,1620,1701,1889M |
0 |
| 62171 |
1542,1619,1643,1701,1889M |
0 |
| 62272 |
1542,1622,1701,1889,2002M |
0 |
| 62449 |
1542,1611,1701,1752,1889M |
0 |
| 64365 |
1542,1611,1701,1745,2002,1889M |
0 |
| 64684 |
1522,1542,1614,1701,2009,1889M |
0 |
| 64690 |
1542,1610,1614,1701,1793,1882,2002,1889M |
0 |
| 64697 |
1542,1618,1701,1889M |
0 |
| 64710 |
1542,1617,1701,1889M |
0 |
| 64716 |
1542,1626,1701,1889M |
0 |
| 64722 |
1542,1615,1701,1889M |
0 |
| 64726 |
1522,1542,1620,1701,2009,1889M |
0 |
| 64732 |
1542,1623,1701,2009,1889M |
0 |
| 64737 |
1542,1616,1701,1889M |
0 |
| 64742 |
1542,1627,1701,1889M |
0 |
| 64747 |
1542,1632,1701,1889M |
0 |
| 64764 |
1542,1619,1701,1889M |
0 |
| 64771 |
1522,1542,1613,1628,1701,1889M |
0 |
| 65096 |
1542,1548,1628,1701,1889M |
0 |