From 914836cf3469cf9ec367ce9241c5c5b2332702f0 Mon Sep 17 00:00:00 2001 From: omicron Date: Sun, 11 May 2025 01:42:35 +0200 Subject: [PATCH] Add an index to the schema for queries that exclude private links --- schema/current.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/schema/current.sql b/schema/current.sql index de6d540..5b437d3 100644 --- a/schema/current.sql +++ b/schema/current.sql @@ -16,4 +16,5 @@ CREATE TABLE links ( ); CREATE INDEX idx_links_created_at ON links(created_at); +CREATE INDEX idx_links_is_private_created_at ON links(is_private, created_at); CREATE INDEX idx_links_url ON links(url);