SELECT 
  search_phrases 
FROM 
  cscart_ab__search_motivation 
WHERE 
  company_id = 0 
  AND lang_code = 'vn' 
  AND TRIM(search_phrases) > ""

Query time 0.00014

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_ab__search_motivation",
          "access_type": "ALL",
          "rows": 17,
          "filtered": 100,
          "attached_condition": "cscart_ab__search_motivation.company_id = 0 and cscart_ab__search_motivation.lang_code = 'vn' and trim(cscart_ab__search_motivation.search_phrases) > ''"
        }
      }
    ]
  }
}