Mysql regexp performance question
Posted
by Tim
on Stack Overflow
See other posts from Stack Overflow
or by Tim
Published on 2010-04-29T19:00:51Z
Indexed on
2010/04/29
19:07 UTC
Read the original article
Hit count: 274
mysql
Rumour has it that this;
SELECT * FROM lineage_string where lineage like '%179%' and lineage regexp '(^|/)179(/|$)'
Would be faster than this;
SELECT * FROM lineage_string where lineage regexp '(^|/)179(/|$)'
Can anyone confirm ? Or know a decent way to test the speed of such queries. Thanks
© Stack Overflow or respective owner