Add db index for post.url column (#2929)

* Add db index for post.url column

As mentioned in https://github.com/LemmyNet/lemmy/issues/2877#issuecomment-1576439829

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

* remove unique
This commit is contained in:
Nutomic 2023-06-07 17:31:24 +02:00 committed by GitHub
parent 9419dd7c05
commit 1c9f0c2bed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -0,0 +1 @@
drop index idx_post_url;

View file

@ -0,0 +1 @@
create index idx_post_url on post(url);