Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

335 B
Raw Blame
-- Creates necessary document indices to improve the performance of name search

-- Enable trigram extension for fuzzy text matching
CREATE EXTENSION IF NOT EXISTS pg_trgm;

-- GIN trigram index allows efficient partial string matching
CREATE INDEX IF NOT EXISTS idx_document_name_trgm
    ON "Document" USING gin (name gin_trgm_ops);