1 -- Alter the comment_aggregates hot sort to sort by score after hot_rank.
2 -- Reason being, is that hot_ranks go to zero after a few days,
3 -- and then comments should be sorted by score, not published.
5 drop index idx_comment_aggregates_hot, idx_comment_aggregates_score;
7 create index idx_comment_aggregates_hot on comment_aggregates (hot_rank desc, score desc);
9 -- Remove published from this sort, its pointless
10 create index idx_comment_aggregates_score on comment_aggregates (score desc);