summaryrefslogtreecommitdiff
path: root/mirrors
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-03-24 17:21:09 -0500
committerDan McGee <dan@archlinux.org>2012-03-24 17:21:09 -0500
commitfd1c992472ea259111a2f4930b73a805c07ee068 (patch)
treeea644290c9758160edab102f25d4bd846b1b8bd2 /mirrors
parent48aec1534324ef17755a3edd2c379ff141c2b993 (diff)
Use bulk_create() when inserting mirror log entriesrelease_2012-03-25
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mirrors')
-rw-r--r--mirrors/management/commands/mirrorcheck.py3
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():