Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
perf(db): drop the duplicate DocumentPermission documentId index (#7591)
teod46b4e59dc33
diff --git a/crates/macro_db_client/migrations/20261006135306_drop_document_permission_document_id_key.sql b/crates/macro_db_client/migrations/20261006135306_drop_document_permission_document_id_key.sqlnew file mode 100644index 0000000000..936b61795f--- /dev/null+++ b/crates/macro_db_client/migrations/20261006135306_drop_document_permission_document_id_key.sql@@ -0,0 +1,6 @@+-- no-transaction+-- "DocumentPermission_pkey" is the same unique btree on "documentId".+-- This second index had the lookups (about 1/s) and the primary key had+-- none, so both were maintained on every insert. After the drop, those+-- lookups use the primary key.+DROP INDEX CONCURRENTLY IF EXISTS "DocumentPermission_documentId_key";