I have this query:
select * from `metro_stations`
where `is_active` = 1
and (`title` like '%search%' or `title_en` like '%search%')
How to create effective indexes if is_active
is TINYINT field and titles are VARCHAR(255) ?
And what about this query:
select * from `metro_stations`
where `is_active` = 1
and (`title` like '%search%' or
`title_en` like '%search%' or
`description` like '%search%')
if description field is text?