A platform for community discussion. Free, open, simple.
PERF: fix N+A+lot query
Sam Saffron1d76b7b7b5fe
diff --git a/lib/topic_view.rb b/lib/topic_view.rbindex ab1d3e67940..6f12cda0127 100644--- a/lib/topic_view.rb+++ b/lib/topic_view.rb@@ -419,7 +419,7 @@ class TopicViewenddef reviewable_counts- if @reviewable_counts.blank?+ if @reviewable_counts.nil?post_ids = @posts.map(&:id)