mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 18:40:01 -03:30
drastically speed up /api/v2/jobs/N/job_events/ with large counts
This commit is contained in:
parent
03cfb7bf9a
commit
dfc769b8fe
@ -3858,8 +3858,7 @@ class JobJobEventsList(BaseJobEventsList):
|
||||
def get_queryset(self):
|
||||
job = self.get_parent_object()
|
||||
self.check_parent_access(job)
|
||||
qs = job.job_events
|
||||
qs = qs.select_related('host')
|
||||
qs = job.job_events.select_related('host').order_by('start_line')
|
||||
return qs.all()
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user