2023-07-21 09:44:47 +00:00
|
|
|
-- Alter the comment_aggregates hot sort to sort by score after hot_rank.
|
2023-08-02 16:44:51 +00:00
|
|
|
-- Reason being, is that hot_ranks go to zero after a few days,
|
2023-07-21 09:44:47 +00:00
|
|
|
-- and then comments should be sorted by score, not published.
|
2023-08-02 16:44:51 +00:00
|
|
|
DROP INDEX idx_comment_aggregates_hot, idx_comment_aggregates_score;
|
2023-07-21 09:44:47 +00:00
|
|
|
|
2023-08-02 16:44:51 +00:00
|
|
|
CREATE INDEX idx_comment_aggregates_hot ON comment_aggregates (hot_rank DESC, score DESC);
|
2023-07-21 09:44:47 +00:00
|
|
|
|
|
|
|
-- Remove published from this sort, its pointless
|
2023-08-02 16:44:51 +00:00
|
|
|
CREATE INDEX idx_comment_aggregates_score ON comment_aggregates (score DESC);
|
|
|
|
|