SELECT 
  * 
FROM 
  cscart_erp_inventory_logs 
WHERE 
  1 = 1 
  AND cscart_erp_inventory_logs.product_id = 1272 
ORDER BY 
  timestamp DESC, 
  id DESC 
LIMIT 
  0, 10

Query time 0.00050

JSON explain

{
  "query_block": {
    "select_id": 1,
    "read_sorted_file": {
      "filesort": {
        "sort_key": "cscart_erp_inventory_logs.`timestamp` desc, cscart_erp_inventory_logs.`id` desc",
        "table": {
          "table_name": "cscart_erp_inventory_logs",
          "access_type": "ALL",
          "rows": 1,
          "filtered": 100,
          "attached_condition": "cscart_erp_inventory_logs.product_id = 1272"
        }
      }
    }
  }
}