diff options
author | Francis Irving <francis@mysociety.org> | 2010-05-25 00:55:00 +0100 |
---|---|---|
committer | Francis Irving <francis@mysociety.org> | 2010-05-25 00:55:00 +0100 |
commit | f90b780ae0ab73f4732ecdd4ca6d0caa65417b2e (patch) | |
tree | c9978782b409733cb093c858383413c6afc02801 | |
parent | ece0fb10db9f7c259efc62a27fb53330cb514e5e (diff) |
Reduce to most recent 100 new results to give temporary speed boost.
-rw-r--r-- | app/models/track_mailer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/track_mailer.rb b/app/models/track_mailer.rb index f5ca38c2e..ef5a0c195 100644 --- a/app/models/track_mailer.rb +++ b/app/models/track_mailer.rb @@ -54,7 +54,7 @@ class TrackMailer < ApplicationMailer # Query for things in this track. We use described_at for the # ordering, so we catch anything new (before described), or # anything whose new status has been described. - xapian_object = InfoRequest.full_search([InfoRequestEvent], track_thing.track_query, 'described_at', true, nil, 200, 1) + xapian_object = InfoRequest.full_search([InfoRequestEvent], track_thing.track_query, 'described_at', true, nil, 100, 1) # Go through looking for unalerted things alert_results = [] for result in xapian_object.results |