I have a table with approx. 10 billion distinct rows, which has a String column with log messages. The problem is to search this column with 'like' operator to match part of text. Once result is received, then select and display the entire row. What I am trying is:
This takes 4-5 seconds (together) which is a bit too much in my case. Has anyone tried this or faced similar issue and what can be a better solution. Thanks in advance.
This works better if I use "hasToken()" instead of "like" for searching in messages. It reduces the search time to just under 1 sec. in most cases which is acceptable.