Files
tinker_tickets/migrations/005_add_fulltext_search.sql
T

7 lines
342 B
SQL
Raw Normal View History

-- Migration: Add FULLTEXT index on ticket title and description
-- Replaces LIKE '%term%' with MATCH ... AGAINST for dramatically better search
-- performance and relevance ranking at scale.
-- MyISAM not needed — InnoDB supports FULLTEXT since MySQL 5.6.
ALTER TABLE tickets ADD FULLTEXT INDEX ft_title_description (title, description);