SELECT data
FROM test
WHERE col REGEXP "asdf_[0-9]+"
LIMIT 1
...1 row in set (1 min 43.12 sec)
SELECT data
FROM test
WHERE col LIKE "asdf_%"
LIMIT 1
...1 row in set (0.01 sec)
regexp
can give me the exact result, I have to filter data if I use like
sql. Is there some way to improve?
BTW: test has 2 million rows and grow up.