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