From eccba55637c9cd3322800212316f981f5b0b420d Mon Sep 17 00:00:00 2001 From: Denis Cornehl Date: Wed, 6 Nov 2024 09:57:36 +0100 Subject: [PATCH] add index on releases.rustdoc_status for rebuild query --- migrations/20241106085600_releases-rustdoc-status-idx.down.sql | 1 + migrations/20241106085600_releases-rustdoc-status-idx.up.sql | 1 + 2 files changed, 2 insertions(+) create mode 100644 migrations/20241106085600_releases-rustdoc-status-idx.down.sql create mode 100644 migrations/20241106085600_releases-rustdoc-status-idx.up.sql diff --git a/migrations/20241106085600_releases-rustdoc-status-idx.down.sql b/migrations/20241106085600_releases-rustdoc-status-idx.down.sql new file mode 100644 index 000000000..304da068e --- /dev/null +++ b/migrations/20241106085600_releases-rustdoc-status-idx.down.sql @@ -0,0 +1 @@ +DROP INDEX releases_rustdoc_status_idx; diff --git a/migrations/20241106085600_releases-rustdoc-status-idx.up.sql b/migrations/20241106085600_releases-rustdoc-status-idx.up.sql new file mode 100644 index 000000000..f8fb0ebec --- /dev/null +++ b/migrations/20241106085600_releases-rustdoc-status-idx.up.sql @@ -0,0 +1 @@ +CREATE INDEX releases_rustdoc_status_idx ON releases USING btree (rustdoc_status ASC);