mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-17 13:24:36 +00:00
Cut the runtime by queueing the changes in memory and deferring database writes
Made some unspecified behavior explicit
This commit is contained in:
@@ -42,6 +42,7 @@ class Tournamentmatchgen
|
||||
end
|
||||
|
||||
def saveMatches
|
||||
@tournament.save!
|
||||
@matches.each do |m|
|
||||
m.tournament_id = @tournament.id
|
||||
m.save
|
||||
|
||||
Reference in New Issue
Block a user