[PATCH] views: Prefetch 'Patch.check_set'

Andy Doan andy.doan at linaro.org
Wed Mar 16 08:01:35 AEDT 2016

On 03/15/2016 02:16 PM, Stephen Finucane wrote:
> The checks for each Patch are queried each time patches are listed.
> This causes a deluge of queries (around one per patch). Mitigate this
> by instead prefetching this related attribute. This reduces the number
> of queries from an average of 119 to 20.
> Signed-off-by: Stephen Finucane <stephen.finucane at intel.com>

Reviewed-by: Andy Doan <andy.doan at linaro.org>

More information about the Patchwork mailing list