aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/db/migrations/006_add_composite_index.sql
diff options
context:
space:
mode:
Diffstat (limited to 'backend/db/migrations/006_add_composite_index.sql')
-rw-r--r--backend/db/migrations/006_add_composite_index.sql1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/db/migrations/006_add_composite_index.sql b/backend/db/migrations/006_add_composite_index.sql
new file mode 100644
index 0000000..d3d378b
--- /dev/null
+++ b/backend/db/migrations/006_add_composite_index.sql
@@ -0,0 +1 @@
+CREATE INDEX IF NOT EXISTS idx_articles_feed_read_id ON articles(feed_id, is_read, id DESC);