Query time 0.00134
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": 132,
"filtered": 100,
"attached_condition": "cscart_products_categories.product_id in (65009,65057,65045,65026,65017,65049,65127,65061,65013,65041,65021,65117,64997,65112,65107,65053,65001,65005,65037,64920,65122,65064,65069,65496)",
"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 |
| 64920 |
1587,1593,1852,2002,1930M |
0 |
| 64997 |
1593,1852,1930M |
0 |
| 65001 |
1593,1852,1930M |
0 |
| 65005 |
1593,1852,1930M |
0 |
| 65009 |
1593,1644,1852,2002,1930M |
0 |
| 65013 |
1593,1622,1852,2002,1930M |
0 |
| 65017 |
1593,1614,1852,2002,1930M |
0 |
| 65021 |
1593,1616,1852,2002,1930M |
0 |
| 65026 |
1593,1852,2002,1930M |
0 |
| 65037 |
1593,1852,2002,1930M |
0 |
| 65041 |
1593,1852,2002,1930M |
0 |
| 65045 |
1593,1852,2002,1930M |
0 |
| 65049 |
1593,1852,2002,1930M |
0 |
| 65053 |
1593,1852,2002,1930M |
0 |
| 65057 |
1593,1852,2002,1930M |
0 |
| 65061 |
1593,1852,2002,1930M |
0 |
| 65064 |
1593,1852,2002,1930M |
0 |
| 65069 |
1593,1852,2002,1930M |
0 |
| 65107 |
1587,1614,1650,1804,1852,1926,2002,1930M |
0 |
| 65112 |
1587,1619,1651,1804,1852,1926,2002,1930M |
0 |
| 65117 |
1587,1644,1652,1804,1852,1926,2002,1930M |
0 |
| 65122 |
1587,1616,1653,1804,1852,1926,2002,1930M |
0 |
| 65127 |
1587,1620,1641,1804,1852,1926,2002,1930M |
0 |
| 65496 |
1593,1846,1852,1924,2002,1930M |
0 |