From c8ba2b5e426626f5c0a564a2440ab90a4a3cd546 Mon Sep 17 00:00:00 2001 From: Alex Angelini Date: Wed, 17 Jul 2024 13:56:04 +0200 Subject: [PATCH] Add object hash index --- migrations/000007_add_hash_idx.down.sql | 1 + migrations/000007_add_hash_idx.up.sql | 1 + 2 files changed, 2 insertions(+) create mode 100644 migrations/000007_add_hash_idx.down.sql create mode 100644 migrations/000007_add_hash_idx.up.sql diff --git a/migrations/000007_add_hash_idx.down.sql b/migrations/000007_add_hash_idx.down.sql new file mode 100644 index 0000000..66f1398 --- /dev/null +++ b/migrations/000007_add_hash_idx.down.sql @@ -0,0 +1 @@ +DROP INDEX CONCURRENTLY IF EXISTS objects_hash_idx; diff --git a/migrations/000007_add_hash_idx.up.sql b/migrations/000007_add_hash_idx.up.sql new file mode 100644 index 0000000..5ed671c --- /dev/null +++ b/migrations/000007_add_hash_idx.up.sql @@ -0,0 +1 @@ +CREATE INDEX CONCURRENTLY IF NOT EXISTS objects_hash_idx ON dl.objects (hash);