Is the MySQL: inversion index automatically generated by MySQL or does it need to be generated manually?

see the query on the web that is similar to name like"% key", where the name column builds an index. If you want to go to the index, you can use

where reverse(name) like reverse("%key")

to my surprise, name builds an index, but reverse (name) doesn"t build an index. Does MySQL generate it automatically?
or do you need to create a column manually

like this?

    alter table add column reverse_name varchar(10) as (reverse(name));
    create index on reverse_name;


Mar.11,2021

this is an optimization of MySQL because reverse ('% key') = 'yek%' , while the query like' yek%' is indexed.


@ oraoto

clipboard.png
can I write down the specific implementation process? Mine is still not indexed.

Menu