Query time 0.00099
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": 136,
"filtered": 100,
"attached_condition": "cscart_products_categories.product_id in (64078,64192,64299,64194,64182,64187,64298,64296,64184,64181,64180,64294,64193,64295,64185,64327,64191,64189,64179,64190,64300,64186,64301,64195)",
"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 |
| 64078 |
1526,1538,1614,1665,1835,2001,1907M |
0 |
| 64179 |
1617,1835,2001,1907M |
0 |
| 64180 |
1616,1835,2001,1907M |
0 |
| 64181 |
1623,1835,2001,1907M |
0 |
| 64182 |
1615,1835,2001,1907M |
0 |
| 64184 |
1620,1835,2001,1907M |
0 |
| 64185 |
1618,1835,2001,1907M |
0 |
| 64186 |
1538,1627,1665,1835,2001,1907M |
0 |
| 64187 |
1526,1538,1614,1666,1835,2001,1907M |
0 |
| 64189 |
1526,1538,1617,1666,1835,2001,1907M |
0 |
| 64190 |
1616,1835,2001,1907M |
0 |
| 64191 |
1538,1623,1666,1835,2001,1907M |
0 |
| 64192 |
1538,1615,1666,1835,2001,1907M |
0 |
| 64193 |
1526,1538,1620,1666,1835,2001,1907M |
0 |
| 64194 |
1538,1618,1666,1835,2001,1907M |
0 |
| 64195 |
1627,1835,2001,1907M |
0 |
| 64294 |
1614,1835,2001,1907M |
0 |
| 64295 |
1617,1835,2001,1907M |
0 |
| 64296 |
1616,1835,2001,1907M |
0 |
| 64298 |
1615,1835,2001,1907M |
0 |
| 64299 |
1620,1835,2001,1907M |
0 |
| 64300 |
1618,1835,2001,1907M |
0 |
| 64301 |
1627,1835,2001,1907M |
0 |
| 64327 |
1835,1907,2001,1623M |
0 |