From 26576ec31a03863a98dd357a152ad553d31bd39e Mon Sep 17 00:00:00 2001 From: jmanczak Date: Wed, 22 Apr 2026 00:28:37 +0200 Subject: [PATCH] don't do like count views for now --- src/database/migrations/0001_init.sql | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/database/migrations/0001_init.sql b/src/database/migrations/0001_init.sql index f409b4a..54ce564 100644 --- a/src/database/migrations/0001_init.sql +++ b/src/database/migrations/0001_init.sql @@ -78,8 +78,6 @@ CREATE TABLE user_quote_likes ( ); CREATE INDEX quote_likes_by_user ON user_quote_likes(user_id); CREATE INDEX quote_likes_by_quote ON user_quote_likes(quote_id); -CREATE MATERIALIZED VIEW quote_like_count AS - SELECT quote_id, COUNT(user_id) AS likes FROM user_quote_likes GROUP BY quote_id; CREATE TABLE quote_tags ( quote_id UUID NOT NULL REFERENCES quotes(id),