From de46d59a94d53de75b1e2fded244a84736240bc8 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Thu, 14 Sep 2017 19:57:50 +0800 Subject: [PATCH] Remove comment that is no longer relevant. --- lib/topic_query.rb | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/topic_query.rb b/lib/topic_query.rb index 98882bc866e..a751fad530b 100644 --- a/lib/topic_query.rb +++ b/lib/topic_query.rb @@ -285,15 +285,6 @@ class TopicQuery end def self.unread_filter(list, user_id, opts) - # PERF note - # We use the function first_unread_topic_for here instead of joining - # the table to assist the PostgreSQL query planner - # - # We want the query planner to have the actual value of the first_unread_topic so - # it can pick an appropriate plan. If it does not have this upfront it will just assume - # that the value will be 1/3 of the way through the topic table which makes it use terrible - # indexes for the plan. - # col_name = opts[:staff] ? "highest_staff_post_number" : "highest_post_number" list