Message ID | 20170225120524.30861-2-stephen@that.guru |
---|---|
State | Superseded |
Headers | show
Return-Path: <patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vVn1n2gPHz9s7v for <incoming@patchwork.ozlabs.org>; Sat, 25 Feb 2017 23:13:33 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=that.guru header.i=@that.guru header.b="bvXBDHQd"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3vVn1n1YjKzDqHZ for <incoming@patchwork.ozlabs.org>; Sat, 25 Feb 2017 23:13:33 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=that.guru header.i=@that.guru header.b="bvXBDHQd"; dkim-atps=neutral X-Original-To: patchwork@lists.ozlabs.org Delivered-To: patchwork@lists.ozlabs.org X-Greylist: delayed 453 seconds by postgrey-1.36 at bilbo; Sat, 25 Feb 2017 23:13:29 AEDT Authentication-Results: lists.ozlabs.org; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=that.guru header.i=@that.guru header.b="bvXBDHQd"; dkim-atps=neutral Received: from relay111.mymailcheap.com (relay111.mymailcheap.com [159.100.251.43]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3vVn1j2krkzDqH3 for <patchwork@lists.ozlabs.org>; Sat, 25 Feb 2017 23:13:29 +1100 (AEDT) Received: from relay102.mymailcheap.com (relay102.mymailcheap.com [185.19.31.3]) by relay111.mymailcheap.com (Postfix) with ESMTPS id 271D9B090 for <patchwork@lists.ozlabs.org>; Sat, 25 Feb 2017 12:05:53 +0000 (UTC) Received: from relay1007.mymailcheap.com (relay1007.mymailcheap.com [149.56.98.132]) by relay102.mymailcheap.com (Postfix) with ESMTPS id 90BD11208A for <patchwork@lists.ozlabs.org>; Sat, 25 Feb 2017 12:05:47 +0000 (UTC) Received: from filter1001.mymailcheap.com (filter1001.mymailcheap.com [158.69.67.251]) by relay1007.mymailcheap.com (Postfix) with ESMTPS id BED501E22E; Sat, 25 Feb 2017 07:05:39 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by filter1001.mymailcheap.com (Postfix) with ESMTP id 987DF20FB1; Sat, 25 Feb 2017 12:05:39 +0000 (UTC) Authentication-Results: filter1001.mymailcheap.com; dkim=permerror reason="key not found" header.d=that.guru header.i=@that.guru header.b=bvXBDHQd; dkim-adsp=none (unprotected policy); dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at filter1001.mymailcheap.com Received: from filter1001.mymailcheap.com ([127.0.0.1]) by localhost (filter1001.mymailcheap.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JRZdWZqW4TPw; Sat, 25 Feb 2017 12:05:38 +0000 (UTC) Received: from one.mxroute.com (one-outgoing.mxroute.com [23.92.70.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by filter1001.mymailcheap.com (Postfix) with ESMTPS; Sat, 25 Feb 2017 12:05:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=that.guru; s=default; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=EVAk89AoU041BNg+NOWfWNltjdKEPPOM4UslJqf+3hM=; b=bvXBDHQdb36ozrzbbaoyiIAMsY l5Blkdgc8E6L1h/+yb5864KiGAVSG/7y0ar5cqQ/ZnBBjrTPYciUHmFmP2iDSn5Ic616hPsbjXR9v vrVMwQ0EkcgmxALS0vUtuZsWtufNbj3mDSMI2eTFDQLiZfiTSCnLdx+ka6ZiYRohjtuMMZoLyY4uR XrLZvmnhC/cbWd0KnOvOEYM6Nfh6DenFvMURhcVCDZdgAi7pToVAGLXpNmdSmmu8sLmu+ggw0WNmt aq2DBFh4SvbEsN5N5ofn2b376gCZ9VolwBxW4Np05kvvaXFkw2VpJ97XuvJ0cwm7YT+Flm05kvDVw hbeAG4PA==; From: Stephen Finucane <stephen@that.guru> To: patchwork@lists.ozlabs.org Subject: [PATCH 1/5] api: Prefetch Series.project Date: Sat, 25 Feb 2017 07:05:20 -0500 Message-Id: <20170225120524.30861-2-stephen@that.guru> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170225120524.30861-1-stephen@that.guru> References: <20170225120524.30861-1-stephen@that.guru> X-OutGoing-Spam-Status: No, score=-1.0 X-AuthUser: stephen@that.guru X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Patchwork development <patchwork.lists.ozlabs.org> List-Unsubscribe: <https://lists.ozlabs.org/options/patchwork>, <mailto:patchwork-request@lists.ozlabs.org?subject=unsubscribe> List-Archive: <http://lists.ozlabs.org/pipermail/patchwork/> List-Post: <mailto:patchwork@lists.ozlabs.org> List-Help: <mailto:patchwork-request@lists.ozlabs.org?subject=help> List-Subscribe: <https://lists.ozlabs.org/listinfo/patchwork>, <mailto:patchwork-request@lists.ozlabs.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Patchwork" <patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> |
diff --git a/patchwork/api/series.py b/patchwork/api/series.py index f66f0d2..3d5847b 100644 --- a/patchwork/api/series.py +++ b/patchwork/api/series.py @@ -51,7 +51,7 @@ class SeriesMixin(object): def get_queryset(self): return Series.objects.all().prefetch_related('patches',)\ - .select_related('submitter', 'cover_letter') + .select_related('submitter', 'cover_letter', 'project') class SeriesList(SeriesMixin, ListAPIView):
I missed this when testing due to only having a single project. There will be performance issues on instances using multiple projects. Signed-off-by: Stephen Finucane <stephen@that.guru> Cc: Andy Doan <andy.doan@linaro.org> --- patchwork/api/series.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)