mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-22 14:45:10 +00:00
d0c94a4f49
* Fixing GetPosts active sort index. Fixes #2683 * Fixing other sort.
7 lines
447 B
SQL
7 lines
447 B
SQL
drop index
|
|
idx_post_aggregates_featured_local_active,
|
|
idx_post_aggregates_featured_community_active;
|
|
|
|
create index idx_post_aggregates_featured_local_active on post_aggregates (featured_local desc, hot_rank(score, newest_comment_time) desc, newest_comment_time desc);
|
|
create index idx_post_aggregates_featured_community_active on post_aggregates (featured_community desc, hot_rank(score, newest_comment_time) desc, newest_comment_time desc);
|