From fd1c992472ea259111a2f4930b73a805c07ee068 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sat, 24 Mar 2012 17:21:09 -0500 Subject: Use bulk_create() when inserting mirror log entries Signed-off-by: Dan McGee --- mirrors/management/commands/mirrorcheck.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'mirrors') 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(): -- cgit v1.2.3-24-g4f1b