SELECT 
  1 
FROM 
  tmall_lock_keys 
WHERE 
  key_id = '823179089b7a068ba79ea819c3cf7279f74e11b966d123fc9f6b727b7d3045e8' 
  AND token = 'tdl5fBdrsmPlLmtgDsAjKrFVQ0ICyAy7WbU3OF+Ynf8=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00760

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "message": "Impossible WHERE noticed after reading const tables"
    }
  }
}