Skip to content

Commit

Permalink
Merge pull request #168 from MITLibraries/tco-131-fix-stats-aggregation
Browse files Browse the repository at this point in the history
Use find_each to batch process all searchevents
  • Loading branch information
JPrevost authored Jan 3, 2025
2 parents 143d467 + 1ef8ec9 commit 161862b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/metrics/algorithms.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def generate(month = nil)
def count_matches(events)
matches = Hash.new(0)

events.each do |event|
events.find_each do |event|
event_matches(event, matches)
end

Expand Down

0 comments on commit 161862b

Please sign in to comment.