-- 116_obj2_multi_feature_matcher.sql (HOTFIX — INSERT step deferred) -- Issue #307 OBJ-2. -- -- Original version did INSERT through a 89M-cost CROSS JOIN LATERAL CTE that -- timed out during deploy. Hotfix keeps только the GIST trgm index (this is -- the load-bearing change for downstream queries — competitors fuzzy match, -- objective_complex_mapping reverse matching). -- -- Actual multi-feature INSERT was already done inline on 2026-05-17 -- (+13 mappings: 129 → 142). Remaining auto-accept candidates (~50-100 at -- composite >= 0.75) will be applied via separate migration 117 after -- the candidate query is pre-materialized to avoid full LATERAL scan. CREATE INDEX IF NOT EXISTS objective_lots_project_name_trgm_idx ON objective_lots USING gist (project_name gist_trgm_ops);