1
0
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:
RJ Osborne
2015-05-24 23:04:22 -04:00
parent 98879c16b9
commit 091b7c4181
5 changed files with 24 additions and 16 deletions

View File

@@ -42,6 +42,7 @@ class Tournamentmatchgen
end
def saveMatches
@tournament.save!
@matches.each do |m|
m.tournament_id = @tournament.id
m.save