What is the best way to search the mysql table field for ending Fiel?

I was told that searching a MySQL database is LIKE '%wordend'bad because it takes a lot of time.

What is the best way to search at the end of a field?

Should I make an extra field where the field to look back is stored in the reverse order, it seems to me a good idea, since it will give the advantage of indexing!

+3
source share
1 answer

Should I make an extra field where the field to look back is saved back

, . LIKE 'dnedrow%' ( ).

, .

+2

Source: https://habr.com/ru/post/1759233/


All Articles