{
"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": 77,
"filtered": 100,
"attached_condition": "cscart_products_categories.product_id in (65705,65704,65523,65584,65522,65524,65529,65590,65686,65681,65672,65673)",
"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')"
}
}
}
| product_id | category_ids | position |
|---|---|---|
| 65522 | 1543,1603,1620,1704,1793,1882,2001,1890M | |
| 65523 | 1542,1620,1701,1793,1882,2002,1889M | |
| 65524 | 1541,1620,1700,1793,1882,2002,1891M | |
| 65529 | 1614,1703,1793,1882,1905,2001,1892M | |
| 65584 | 1542,1611,1701,1793,1878,1882,1979,1889M | |
| 65590 | 1531,1754,1832,1878,1979,2003,1899M | |
| 65672 | 1654,1704,1708,1878,1905,1979,2001,1890M | |
| 65673 | 1656,1704,1708,1878,1905,1979,2001,1890M | |
| 65681 | 1542,1614,1701,1779,1793,1882,2002,1889M | |
| 65686 | 1986,2002,1614M | |
| 65704 | 1986,2001,1617M | |
| 65705 | 1986,2002,1617M |