From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Subject: bug#32300: [PATCH] database: Fix the builds limit issue. Date: Wed, 08 Aug 2018 13:44:44 +0200 Message-ID: <878t5h13rn.fsf@lassieur.org> References: <874lgjc5g9.fsf@lassieur.org> <20180804160057.20254-1-clement@lassieur.org> <87sh3ui038.fsf@lassieur.org> <20180807124626.29e6a12a@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47192) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fnMtn-0007hP-Mz for bug-guix@gnu.org; Wed, 08 Aug 2018 07:45:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fnMti-0002uI-Q7 for bug-guix@gnu.org; Wed, 08 Aug 2018 07:45:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:39233) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fnMti-0002tt-Lw for bug-guix@gnu.org; Wed, 08 Aug 2018 07:45:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fnMti-0006fu-7H for bug-guix@gnu.org; Wed, 08 Aug 2018 07:45:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <20180807124626.29e6a12a@scratchpost.org> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Danny Milosavljevic Cc: 32300@debbugs.gnu.org Hi Danny, Danny Milosavljevic writes: > The more complicated version is a LOT faster - and was added because > the version in this patch was just way too slow (unusably slow). > > I think it's better to also remove the call to db-get-outputs (and > the entry #:outputs) entirely. I don't think our overview page even > shows the outputs in the first place, so why fetch them? As you can see on my test machine with a Berlin database, it's almost instantaneous. Also, with my commit that merges the Derivations and the Builds tables, the queries are way lighter: they return about 100 builds per evaluation, instead of 20000. Plus, the outputs are used to get the build log. https://cuirass.lassieur.org:8081/jobset/guix-master WDYT? Cl=C3=A9ment