summaryrefslogtreecommitdiffstats
path: root/mirrors
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-03-24 23:21:09 +0100
committerDan McGee <dan@archlinux.org>2012-03-24 23:21:09 +0100
commitfd1c992472ea259111a2f4930b73a805c07ee068 (patch)
treeea644290c9758160edab102f25d4bd846b1b8bd2 /mirrors
parent48aec1534324ef17755a3edd2c379ff141c2b993 (diff)
downloadarchweb-fd1c992472ea259111a2f4930b73a805c07ee068.tar.gz
archweb-fd1c992472ea259111a2f4930b73a805c07ee068.tar.xz
Use bulk_create() when inserting mirror log entries
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 c2928e6..7ffb777 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():