[PATCH 0/2] Fix slow EventList API endpoint

Daniel Axtens dja at axtens.net
Mon Mar 12 23:37:35 AEDT 2018


Hi,

In the process of reviewing Stephen's series, I had an independent
look at what was making the event list api endpont so slow.

My analysis is that the DB queries can be improved, but that the main
slow-down is due to some weirdness in how d-r-f's browsable API renderer
works.

Stephen, this gets my view times down considerably without changes to
the database. Can you compare your results with this please?

Regards,
Daniel

Daniel Axtens (2):
  api: EventList: change select_related() to prefetch_related()
  api: EventList: Only provide JSON version

 patchwork/api/event.py | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

-- 
2.14.1



More information about the Patchwork mailing list