Skip to content

Commit

Permalink
Use find_each to batch process all searchevents
Browse files Browse the repository at this point in the history
  • Loading branch information
JPrevost committed Jan 3, 2025
1 parent 143d467 commit 1ef8ec9
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 1ef8ec9

Please sign in to comment.