server: index on nzb_posts created_at, attempt to speed up homepage

This commit is contained in:
Bill Thiede 2025-01-27 13:18:36 -08:00
parent b9fbefe05c
commit 70fb635eda
2 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1,2 @@
-- Add down migration script here
DROP INDEX nzb_posts_created_at_idx;

View File

@ -0,0 +1,2 @@
-- Add up migration script here
CREATE INDEX nzb_posts_created_at_idx ON nzb_posts USING btree (created_at);