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
TEXTandVARCHARfields I tried it on. I remember having read in a blog comment that REGEXP is faster than LIKE forUNSIGNEDfields, but I can't confirm that.