SELECT data FROM test WHERE col REGEXP "asdf_[0-9]+" LIMIT 1
... 1 line in the set (1 min. 43.12 sec.)
SELECT data FROM test WHERE col LIKE "asdf_%" LIMIT 1
... 1 line in the set (0,01 sec)
regexp can give me the exact result, I need to filter the data if I use like sql. Is there any way to improve?
BTW: The test has 2 million lines and is growing.
source share