]> git.ipfire.org Git - thirdparty/patchwork.git/commit
admin: Configure 'list_select_related', 'get_queryset'
authorStephen Finucane <stephen@that.guru>
Wed, 12 Sep 2018 21:57:39 +0000 (15:57 -0600)
committerStephen Finucane <stephen@that.guru>
Wed, 19 Sep 2018 21:48:09 +0000 (22:48 +0100)
commitb832aa43a8e29e52359dd51c17f77d09dae1fec4
treea678abbd31eab979d9169dde729b2f4d40753d16
parente80216a96eac6b1f1ed10aa9effd1d3120f2c3a1
admin: Configure 'list_select_related', 'get_queryset'

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@that.guru>
patchwork/admin.py