SELECT 
  object_id, 
  object_type, 
  link_type, 
  object_data, 
  inherit, 
  inherit_if_not_available 
FROM 
  tconnect_ab__product_recommendations 
WHERE 
  1 
  AND (
    object_id = 228 
    AND object_type = 'P' 
    OR object_id = 170 
    AND object_type = 'C'
  )

Query time 0.00063

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.0036475,
    "nested_loop": [
      {
        "table": {
          "table_name": "tconnect_ab__product_recommendations",
          "access_type": "range",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "8",
          "used_key_parts": ["object_id", "object_type"],
          "loops": 1,
          "rows": 2,
          "cost": 0.0036475,
          "filtered": 100,
          "attached_condition": "tconnect_ab__product_recommendations.object_id = 228 and tconnect_ab__product_recommendations.object_type = 'P' or tconnect_ab__product_recommendations.object_id = 170 and tconnect_ab__product_recommendations.object_type = 'C'"
        }
      }
    ]
  }
}