Index title_info in info_type_id
Partial index title_info on genre
Change distinct to group_by