[PATCH 0/2] Fix slow EventList API endpoint

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


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

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


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(-)


More information about the Patchwork mailing list