[PATCH] admin: Configure 'list_select_related', 'get_queryset'

Stephen Finucane stephen at that.guru
Thu Sep 20 07:49:00 AEST 2018


On Wed, 2018-09-12 at 15:57 -0600, Stephen Finucane wrote:
> This has a significant improvement for the patch and series views.
> 
>   /patchwork/patch
>     FROM: ~114 queries
>     TO: ~14 queries
> 
>   /patchwork/series
>     FROM: ~210 queries
>     TO: ~10 queries
> 
> Signed-off-by: Stephen Finucane <stephen at that.guru>

This is an easy win and is currently annoying me, so I've gone ahead
and applied it.

Stephen




More information about the Patchwork mailing list