SELECT 
  cscart_product_reviews.product_review_id, 
  cscart_product_reviews.product_id, 
  cscart_product_reviews.user_id, 
  cscart_product_reviews.name, 
  cscart_product_reviews.quick_comment, 
  cscart_product_reviews.comment, 
  cscart_product_reviews.rating_value, 
  cscart_product_reviews.product_review_timestamp 
FROM 
  cscart_product_reviews 
WHERE 
  cscart_product_reviews.product_id IN (43459) 
ORDER BY 
  cscart_product_reviews.product_review_id DESC 
LIMIT 
  2

Query time 0.00093

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "read_sorted_file": {
          "filesort": {
            "sort_key": "cscart_product_reviews.product_review_id desc",
            "table": {
              "table_name": "cscart_product_reviews",
              "access_type": "ref",
              "possible_keys": ["idx_product_id"],
              "key": "idx_product_id",
              "key_length": "3",
              "used_key_parts": ["product_id"],
              "ref": ["const"],
              "rows": 1,
              "filtered": 100,
              "attached_condition": "cscart_product_reviews.product_id <=> 43459"
            }
          }
        }
      }
    ]
  }
}

Result

product_review_id product_id user_id name quick_comment comment rating_value product_review_timestamp
32295 43459 7325 Quỳnh Hương Chất lượng tốt, giao nhanh Cần mua quà 20/10 gấp, ban đầu hình như shop ko thấy đơn nên mình phải liên hệ CSKH và dc Chus hỗ trợ sau đó thì đơn giao lalamove tới tay mình trong 2h, kịp chiều 20/10 để tặng mẹ luôn. Cầm vào đã thấy thoảng rất nhẹ hương hoa hồng, mũi mình nghe hơi giống mùi trái vải. Set này đơn giản mà giá mềm để làm quà, lại thực tế nữa, packaging thì kiểu giấy kraft mộc nhìn rất dịu 5 1729495143