SELECT 
  attachment_id, 
  filename, 
  on_server 
FROM 
  cscart_attachments 
WHERE 
  object_id = 31112 
  AND object_type = 'product_video'

Query time 0.00060

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "0.35"
    },
    "table": {
      "table_name": "cscart_attachments",
      "access_type": "ref",
      "possible_keys": [
        "object_type"
      ],
      "key": "object_type",
      "used_key_parts": [
        "object_type",
        "object_id"
      ],
      "key_length": "95",
      "ref": [
        "const",
        "const"
      ],
      "rows_examined_per_scan": 1,
      "rows_produced_per_join": 1,
      "filtered": "100.00",
      "cost_info": {
        "read_cost": "0.25",
        "eval_cost": "0.10",
        "prefix_cost": "0.35",
        "data_read_per_join": "1K"
      },
      "used_columns": [
        "attachment_id",
        "object_type",
        "object_id",
        "filename",
        "on_server"
      ]
    }
  }
}