Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions drizzle/0013_api_key_hash_index.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-- #41 Unique index on publishers.api_key_hash so every authenticated request
-- uses an index scan instead of a sequential scan.
-- CONCURRENTLY lets the index build without locking the table, so the
-- migration is safe to apply on a live database.
CREATE UNIQUE INDEX CONCURRENTLY IF NOT EXISTS "idx_publishers_api_key_hash"
ON "publishers" ("api_key_hash");
Loading
Loading