From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Subject: bug#32234: [PATCH 2/2] database: Serialize all database accesses in a thread. Date: Mon, 27 Aug 2018 15:47:27 +0200 Message-ID: <878t4rc45s.fsf@lassieur.org> References: <20180806192736.1747-1-clement@lassieur.org> <20180806192736.1747-2-clement@lassieur.org> <87zhxih2no.fsf@gnu.org> <87lg8tb4rz.fsf@lassieur.org> <87va7w6d7c.fsf@gnu.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]:33917) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fuI6W-0003JK-I6 for bug-guix@gnu.org; Mon, 27 Aug 2018 10:02:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fuHsB-0007G3-NB for bug-guix@gnu.org; Mon, 27 Aug 2018 09:48:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:56905) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fuHsB-0007Fi-Hp for bug-guix@gnu.org; Mon, 27 Aug 2018 09:48:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fuHsB-0005DB-9X for bug-guix@gnu.org; Mon, 27 Aug 2018 09:48:03 -0400 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-reply-to: <87va7w6d7c.fsf@gnu.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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 32234-done@debbugs.gnu.org Ludovic Court=C3=A8s writes: > Hi Cl=C3=A9ment, > > Cl=C3=A9ment Lassieur skribis: > >> Ludovic Court=C3=A8s writes: >> >>> Excellent, thanks for working on this! This looks great to me, and I >>> think the pros outweigh the cons. Did you check on a big database how >>> well it performs? >> >> Yes, I didn't see any difference. When I use Berlin's database, it >> works well but crashes quickly for another reason (lack of disk space I >> think, and /tmp being tmpfs). > > Sounds good (not that it crashes, but that you didn=E2=80=99t see any > difference ;-)). > >>> I think I find it nicer to keep the =E2=80=98db=E2=80=99 parameter ever= ywhere (except >>> that it=E2=80=99s now a channel instead of an actual database) rather t= han using >>> this global variable. >>> >>> WDYT? >> >> That 'db' parameter made sense before, because there were different >> database connections: one per fiber. But now that there is only one >> global channel accessible from everywhere, I can't find any use for a >> 'db-channel' parameter. >> >> Also, using two differents channels for the same database would be a >> bug, it would break the serialization mechanism. >> >> And I don't think using several databases (with one channel per >> database) would make sense either. > > These are all good points, indeed. I=E2=80=99m mildly reluctant to the g= lobal > parameter, but if you prefer it that way, I don=E2=80=99t mind; the end r= esult > matters more than this tiny issue anyway! > > So: LGTM. > > Thank you! > > Ludo=E2=80=99. Ok, pushed!