Query time 0.00114
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": 112,
"filtered": 100,
"attached_condition": "cscart_products_categories.product_id in (59410,64688,60890,61485,60138,62054,62226,61077,61075,59420,61211,61517,61693,59650,61692,61071,61344,61520,61074,61516,62060,64821,62434,63345)",
"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 |
| 59410 |
1542,1548,1701,2003,1889M |
0 |
| 59420 |
1542,1553,1701,1889M |
0 |
| 59650 |
1542,1701,1771,1889M |
0 |
| 60138 |
1542,1701,1747,1889M |
0 |
| 60890 |
1542,1644,1701,1889M |
0 |
| 61071 |
1542,1635,1701,1889M |
0 |
| 61074 |
1542,1637,1701,1779,1889M |
0 |
| 61075 |
1542,1635,1701,1779,1889M |
0 |
| 61077 |
1542,1619,1701,1779,1889M |
0 |
| 61211 |
1542,1701,1889M |
0 |
| 61344 |
1542,1614,1642,1701,1889M |
0 |
| 61485 |
1542,1639,1701,1889M |
0 |
| 61516 |
1542,1633,1701,1749,1889M |
0 |
| 61517 |
1542,1629,1701,2002,1889M |
0 |
| 61520 |
1542,1623,1701,1750,1889M |
0 |
| 61692 |
1542,1611,1636,1701,1889M |
0 |
| 61693 |
1542,1634,1701,1889M |
0 |
| 62054 |
1542,1614,1701,1889M |
0 |
| 62060 |
1542,1616,1701,1889M |
0 |
| 62226 |
1542,1701,1767,1889M |
0 |
| 62434 |
1542,1620,1624,1701,1889M |
0 |
| 63345 |
1542,1545,1701,2003,1889M |
0 |
| 64688 |
1542,1701,1751,1889M |
0 |
| 64821 |
1522,1542,1631,1701,2009,1889M |
0 |