How can I speed up string matching query which uses SQL like
? The code looks something like
CurrentSchool.all.includes(:school).where(is_middle_school: true).where("name like '%#{search}%'")
This is search box suggestion query that has to fast for good UX.