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:
parent
9419dd7c05
commit
1c9f0c2bed
2 changed files with 2 additions and 0 deletions
1
migrations/2023-06-06-104440_index_post_url/down.sql
Normal file
1
migrations/2023-06-06-104440_index_post_url/down.sql
Normal file
|
@ -0,0 +1 @@
|
|||
drop index idx_post_url;
|
1
migrations/2023-06-06-104440_index_post_url/up.sql
Normal file
1
migrations/2023-06-06-104440_index_post_url/up.sql
Normal file
|
@ -0,0 +1 @@
|
|||
create index idx_post_url on post(url);
|
Loading…
Reference in a new issue