Commit fd1c9924 authored by Dan McGee's avatar Dan McGee
Browse files

Use bulk_create() when inserting mirror log entries



Signed-off-by: default avatarDan McGee <dan@archlinux.org>
parent 48aec153
......@@ -137,8 +137,7 @@ def run(self):
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():
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment