Skip to content

Commit

Permalink
Add db index for post.url column (#2929)
Browse files Browse the repository at this point in the history
* Add db index for post.url column

As mentioned in #2877 (comment)

Not sure if its preferable to do this, or make a combined index
which includes post.nsfw, post.removed, post.deleted

* remove unique
  • Loading branch information
Nutomic authored Jun 7, 2023
1 parent 9419dd7 commit 1c9f0c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions migrations/2023-06-06-104440_index_post_url/down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
drop index idx_post_url;
1 change: 1 addition & 0 deletions migrations/2023-06-06-104440_index_post_url/up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
create index idx_post_url on post(url);

0 comments on commit 1c9f0c2

Please sign in to comment.