Skip to content
Snippets Groups Projects
Commit f9841537 authored by Michael Terry's avatar Michael Terry Committed by Michael Terry
Browse files

Avoid flattening a queryset

notify_credentials was flattening a queryset when it shouldn't have,
which was exploding a large query all into memory. Hopefully this will
help with that.
parent 5c41fc69
No related merge requests found
......@@ -145,8 +145,8 @@ class Command(BaseCommand):
# First, do certs
for i, cert in enumerate(certs, start=1):
log.info(
"Handling credential changes (%d of %d) for certificate %s",
i, len(certs), certstr(cert),
"Handling credential changes %d for certificate %s",
i, certstr(cert),
)
if delay:
time.sleep(delay)
......@@ -165,8 +165,8 @@ class Command(BaseCommand):
# Then do grades
for i, grade in enumerate(grades, start=1):
log.info(
"Handling grade changes (%d of %d) for grade %s",
i, len(grades), gradestr(grade),
"Handling grade changes %d for grade %s",
i, gradestr(grade),
)
if delay:
time.sleep(delay)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment