From d9df900c0b9c3d17479c31573afeae162ba489fe Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 5 Jul 2023 15:59:56 -0400 Subject: [PATCH] Adding a comment. --- crates/db_views/src/post_view.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/db_views/src/post_view.rs b/crates/db_views/src/post_view.rs index 89cfe3eaf..07ad40d45 100644 --- a/crates/db_views/src/post_view.rs +++ b/crates/db_views/src/post_view.rs @@ -392,6 +392,8 @@ impl<'a> PostQuery<'a> { query = match self.sort.unwrap_or(SortType::Hot) { SortType::Active => query + // Hot ranks fade to zero after a few days, and this filter drastically reduces + // the number of rows needed to be joined to. .filter(post_aggregates::hot_rank_active.gt(1)) .then_order_by(post_aggregates::hot_rank_active.desc()), SortType::Hot => query