mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-01 01:36:12 -04:00
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
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 New Issue
Block a user