Skip to content

Commit

Permalink
perf: create indexes for home page
Browse files Browse the repository at this point in the history
  • Loading branch information
goenning committed May 17, 2021
1 parent 1ee755e commit 5d129c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions migrations/202105161823_create_indexes.sql
@@ -0,0 +1,4 @@
CREATE INDEX IF NOT EXISTS post_tags_post_id_fkey ON post_tags (tenant_id,post_id);
CREATE INDEX IF NOT EXISTS comments_post_id_fkey ON comments (tenant_id,post_id);
CREATE INDEX IF NOT EXISTS post_votes_post_id_fkey ON post_votes (tenant_id,post_id);
CREATE INDEX IF NOT EXISTS post_subscribers_post_id_fkey ON post_subscribers (tenant_id,post_id);

0 comments on commit 5d129c9

Please sign in to comment.