diff options
author | Dan McGee <dan@archlinux.org> | 2012-03-24 17:21:09 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-03-24 17:21:09 -0500 |
commit | fd1c992472ea259111a2f4930b73a805c07ee068 (patch) | |
tree | ea644290c9758160edab102f25d4bd846b1b8bd2 /mirrors/management | |
parent | 48aec1534324ef17755a3edd2c379ff141c2b993 (diff) |
Use bulk_create() when inserting mirror log entriesrelease_2012-03-25
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mirrors/management')
-rw-r--r-- | mirrors/management/commands/mirrorcheck.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mirrors/management/commands/mirrorcheck.py b/mirrors/management/commands/mirrorcheck.py index c2928e67..7ffb7773 100644 --- a/mirrors/management/commands/mirrorcheck.py +++ b/mirrors/management/commands/mirrorcheck.py @@ -137,8 +137,7 @@ class MirrorCheckPool(object): logger.debug("joining on all threads") self.tasks.join() logger.debug("processing log entries") - for log in self.logs: - log.save() + MirrorLog.objects.bulk_create(self.logs) logger.debug("log entries saved") def check_current_mirrors(): |