SELECT 
  q_products.* 
FROM 
  q_products 
WHERE 
  q_products.product_id IN (
    2871, 2872, 2873, 2874, 2875, 2876, 2877, 
    2878, 2879, 2880, 2717, 2718, 2719, 
    2720, 2721, 2722
  )

Query time 0.00074

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "38.41"
    },
    "table": {
      "table_name": "q_products",
      "access_type": "range",
      "possible_keys": [
        "PRIMARY"
      ],
      "key": "PRIMARY",
      "used_key_parts": [
        "product_id"
      ],
      "key_length": "3",
      "rows_examined_per_scan": 16,
      "rows_produced_per_join": 16,
      "filtered": "100.00",
      "index_condition": "(`portal`.`q_products`.`product_id` in (2871,2872,2873,2874,2875,2876,2877,2878,2879,2880,2717,2718,2719,2720,2721,2722))",
      "cost_info": {
        "read_cost": "35.21",
        "eval_cost": "3.20",
        "prefix_cost": "38.41",
        "data_read_per_join": "94K"
      },
      "used_columns": [
        "product_id",
        "product_code",
        "product_type",
        "status",
        "company_id",
        "list_price",
        "vendor_price",
        "amount",
        "weight",
        "length",
        "width",
        "height",
        "shipping_freight",
        "low_avail_limit",
        "timestamp",
        "updated_timestamp",
        "usergroup_ids",
        "is_edp",
        "edp_shipping",
        "unlimited_download",
        "tracking",
        "free_shipping",
        "zero_price_action",
        "is_pbp",
        "is_op",
        "is_oper",
        "is_returnable",
        "return_period",
        "avail_since",
        "out_of_stock_actions",
        "localization",
        "min_qty",
        "max_qty",
        "qty_step",
        "list_qty_count",
        "tax_ids",
        "age_verification",
        "age_limit",
        "options_type",
        "exceptions_type",
        "details_layout",
        "shipping_params",
        "facebook_obj_type",
        "parent_product_id",
        "__variation_code",
        "__variation_options",
        "__is_default_variation",
        "buy_now_url"
      ]
    }
  }
}

Result

product_id product_code product_type status company_id list_price vendor_price amount weight length width height shipping_freight low_avail_limit timestamp updated_timestamp usergroup_ids is_edp edp_shipping unlimited_download tracking free_shipping zero_price_action is_pbp is_op is_oper is_returnable return_period avail_since out_of_stock_actions localization min_qty max_qty qty_step list_qty_count tax_ids age_verification age_limit options_type exceptions_type details_layout shipping_params facebook_obj_type parent_product_id __variation_code __variation_options __is_default_variation buy_now_url
2717 CRDNCM002 P A 2 1200.00 900.15 261 0.000 0 0 0 0.00 0 1556030538 1575026562 0 N N N B N R N N N Y 10 0 S 1 0 1 0 N 0 P F default a:5:{s:16:"min_items_in_box";i:0;s:16:"max_items_in_box";i:0;s:10:"box_length";i:0;s:9:"box_width";i:0;s:10:"box_height";i:0;} activity 0 N
2718 CRDNCM051 P A 2 1999.00 1466.25 2 0.000 0 0 0 0.00 0 1556030538 1575349699 0 N N N B N R N N N Y 10 0 S 1 0 1 0 N 0 P F default a:5:{s:16:"min_items_in_box";i:0;s:16:"max_items_in_box";i:0;s:10:"box_length";i:0;s:9:"box_width";i:0;s:10:"box_height";i:0;} activity 0 N
2719 CRDNCM004 P A 2 999.00 565.25 29 0.000 0 0 0 0.00 0 1556030538 1575866607 0 N N N B N R N N N Y 10 0 S 1 0 1 0 N 0 P F default a:5:{s:16:"min_items_in_box";i:0;s:16:"max_items_in_box";i:0;s:10:"box_length";i:0;s:9:"box_width";i:0;s:10:"box_height";i:0;} activity 0 N
2720 CRDPFM017 P A 2 900.00 602.65 46 0.000 0 0 0 0.00 0 1556030538 1575866653 0 N N N B N R N N N Y 10 0 S 1 0 1 0 N 0 P F default a:5:{s:16:"min_items_in_box";i:0;s:16:"max_items_in_box";i:0;s:10:"box_length";i:0;s:9:"box_width";i:0;s:10:"box_height";i:0;} activity 0 N
2721 CRDNCM047 P A 2 850.00 582.25 5 0.000 0 0 0 0.00 0 1556030538 1575866705 0 N N N B N R N N N Y 10 0 S 1 0 1 0 N 0 P F default a:5:{s:16:"min_items_in_box";i:0;s:16:"max_items_in_box";i:0;s:10:"box_length";i:0;s:9:"box_width";i:0;s:10:"box_height";i:0;} activity 0 N
2722 CRDNCU056 P A 2 950.00 641.75 18 0.000 0 0 0 0.00 0 1556030538 1575866779 0 N N N B N R N N N Y 10 0 S 1 0 1 0 N 0 P F default a:5:{s:16:"min_items_in_box";i:0;s:16:"max_items_in_box";i:0;s:10:"box_length";i:0;s:9:"box_width";i:0;s:10:"box_height";i:0;} activity 0 N
2871 PRAPFW055 P A 2 59.95 220.15 56 0.000 0 0 0 0.00 0 1556117508 1577086725 0 N N N B N R N N N Y 10 0 S 1 0 1 0 N 0 P F a:5:{s:16:"min_items_in_box";i:0;s:16:"max_items_in_box";i:0;s:10:"box_length";i:0;s:9:"box_width";i:0;s:10:"box_height";i:0;} 0 N
2872 PRAPFM046 P A 2 215.00 131.75 441 0.000 0 0 0 0.00 0 1556117508 1577089111 0 N N N B N R N N N Y 10 0 S 1 0 1 0 6 N 0 P F default a:5:{s:16:"min_items_in_box";i:0;s:16:"max_items_in_box";i:0;s:10:"box_length";i:0;s:9:"box_width";i:0;s:10:"box_height";i:0;} 0 N
2873 PRAPFM057 P A 2 36.24 131.75 12 0.000 0 0 0 0.00 0 1556117508 1577086970 0 N N N B N R N N N Y 10 0 S 1 0 1 0 N 0 P F a:5:{s:16:"min_items_in_box";i:0;s:16:"max_items_in_box";i:0;s:10:"box_length";i:0;s:9:"box_width";i:0;s:10:"box_height";i:0;} 0 N
2874 PRAPFM049 P A 2 35.42 131.75 363 0.000 0 0 0 0.00 0 1556117508 1577087187 0 N N N B N R N N N Y 10 0 S 1 0 1 0 N 0 P F a:5:{s:16:"min_items_in_box";i:0;s:16:"max_items_in_box";i:0;s:10:"box_length";i:0;s:9:"box_width";i:0;s:10:"box_height";i:0;} 0 N
2875 PRAPFW050 P A 2 38.15 140.25 20 0.000 0 0 0 0.00 0 1556117508 1577087379 0 N N N B N R N N N Y 10 0 S 1 0 1 0 N 0 P F a:5:{s:16:"min_items_in_box";i:0;s:16:"max_items_in_box";i:0;s:10:"box_length";i:0;s:9:"box_width";i:0;s:10:"box_height";i:0;} 0 N
2876 PRAPFZ047 P A 2 58.58 211.65 8 0.000 0 0 0 0.00 0 1556117508 1577087881 0 N N N B N R N N N Y 10 0 S 1 0 1 0 N 0 P F a:5:{s:16:"min_items_in_box";i:0;s:16:"max_items_in_box";i:0;s:10:"box_length";i:0;s:9:"box_width";i:0;s:10:"box_height";i:0;} 0 N
2877 PRAPFZ041 P A 2 62.67 228.65 7 0.000 0 0 0 0.00 0 1556117508 1577087947 0 N N N B N R N N N Y 10 0 S 1 0 1 0 N 0 P F a:5:{s:16:"min_items_in_box";i:0;s:16:"max_items_in_box";i:0;s:10:"box_length";i:0;s:9:"box_width";i:0;s:10:"box_height";i:0;} 0 N
2878 PRAPFM042 P A 2 65.40 237.15 12 0.000 0 0 0 0.00 0 1556117508 1577088513 0 N N N B N R N N N Y 10 0 S 1 0 1 0 N 0 P F a:5:{s:16:"min_items_in_box";i:0;s:16:"max_items_in_box";i:0;s:10:"box_length";i:0;s:9:"box_width";i:0;s:10:"box_height";i:0;} 0 N
2879 PRAPFM051 P A 2 36.78 135.15 12 0.000 0 0 0 0.00 0 1556117508 1577452834 0 N N N B N R N N N Y 10 0 S 1 0 1 0 N 0 P F a:5:{s:16:"min_items_in_box";i:0;s:16:"max_items_in_box";i:0;s:10:"box_length";i:0;s:9:"box_width";i:0;s:10:"box_height";i:0;} 0 N
2880 PRAPFW005 P A 2 51.77 191.25 66 0.000 0 0 0 0.00 0 1556117508 1577426665 0 N N N B N R N N N Y 10 0 S 1 0 1 0 N 0 P F a:5:{s:16:"min_items_in_box";i:0;s:16:"max_items_in_box";i:0;s:10:"box_length";i:0;s:9:"box_width";i:0;s:10:"box_height";i:0;} 0 N