DEV: Remove stale TODO (#20039)

This TODO is irrelevant -- in reality this has not been a
perf issue, and there is not actually an N1 here. Furthermore,
this is only used in a single plugin, not in core.
This commit is contained in:
Martin Brennan 2023-01-27 16:32:11 +10:00 committed by GitHub
parent da0b401fa5
commit 079e1108f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -1895,8 +1895,6 @@ class Topic < ActiveRecord::Base
def incoming_email_addresses(group: nil, received_before: Time.zone.now)
email_addresses = Set.new
# TODO(martin) Look at improving this N1, it will just get slower the
# more replies/incoming emails there are for the topic.
self
.incoming_email
.where("created_at <= ?", received_before)