Query time 0.00177
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": 35,
"filtered": 100,
"index_condition": "cscart_products_categories.product_id in (357,354,103,155,763,15,1223,304,1130,337,1135,366,1137,1138,1271,1192,1173,142,143,369,1313,20,16,144,145,97,52,291,76,313,1213,1348,1349,801,604)"
},
"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", "bacpvdev_db.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": ["bacpvdev_db.cscart_products_categories.category_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "cscart_categories.storefront_id in (0,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 |
15 |
6M |
0 |
16 |
6M |
0 |
20 |
6M |
0 |
52 |
6M |
0 |
76 |
6M |
0 |
97 |
6M |
0 |
103 |
6M |
0 |
142 |
6M |
0 |
143 |
6M |
0 |
144 |
6M |
0 |
145 |
6M |
0 |
155 |
6M |
0 |
291 |
6M |
0 |
304 |
6M |
0 |
313 |
6M |
0 |
337 |
6M |
0 |
354 |
6M |
0 |
357 |
6M |
0 |
366 |
6M |
0 |
369 |
6M |
0 |
604 |
6M |
0 |
763 |
6M |
0 |
801 |
6M |
0 |
1130 |
6M |
0 |
1135 |
6M |
0 |
1137 |
6M |
0 |
1138 |
6M |
0 |
1173 |
6M |
0 |
1192 |
6M |
0 |
1213 |
6M |
0 |
1223 |
6M |
0 |
1271 |
6M |
0 |
1313 |
6M |
0 |
1348 |
6M |
0 |
1349 |
6M |
0 |