Query time 0.00110
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": 111,
"filtered": 100,
"attached_condition": "cscart_products_categories.product_id in (64916,62863,64359,64374,64375,64470,62654,62657,64961,62648,64930,62653,64990,62655,64986,62656,64978,64972,64926,64968,64934,65074,65030,64982)",
"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 |
| 62648 |
1593,1852,2002,1930M |
0 |
| 62653 |
1593,1852,1930M |
0 |
| 62654 |
1593,1619,1852,2002,1930M |
0 |
| 62655 |
1593,1616,1852,2002,1930M |
0 |
| 62656 |
1593,1614,1852,2002,1930M |
0 |
| 62657 |
1593,1852,2002,1930M |
0 |
| 62863 |
1547,1593,1847,1852,1925,2002,1930M |
0 |
| 64359 |
1593,1768,1804,1852,1856,1930,1934,2002,1926M |
0 |
| 64374 |
1593,1611,1852,2002,1930M |
0 |
| 64375 |
1593,1852,2002,1930M |
0 |
| 64470 |
1547,1593,1756,1804,1847,1852,1925,1926,2002,1930M |
0 |
| 64916 |
1587,1593,1852,1930M |
0 |
| 64926 |
1593,1852,1930M |
0 |
| 64930 |
1593,1852,1930M |
0 |
| 64934 |
1593,1852,1930M |
0 |
| 64961 |
1593,1852,1930M |
0 |
| 64968 |
1593,1852,1930M |
0 |
| 64972 |
1593,1852,1930M |
0 |
| 64978 |
1593,1852,1930M |
0 |
| 64982 |
1593,1852,1930M |
0 |
| 64986 |
1593,1852,1930M |
0 |
| 64990 |
1593,1852,1930M |
0 |
| 65030 |
1587,1593,1852,2002,1930M |
0 |
| 65074 |
1587,1593,1852,2002,1930M |
0 |