From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: sqlite3 usage for multisession variable storage Date: Wed, 15 Dec 2021 15:10:07 +0200 Message-ID: <835yrqj9ow.fsf@gnu.org> References: <87tufmjyai.fsf@gnus.org> <87lf0nr2b4.fsf@gnus.org> <87ee6f5wmy.fsf@telefonica.net> <87czlzqy3a.fsf@gnus.org> <874k7bqptr.fsf@gnus.org> <922b09b2-24b1-6f3f-ce5b-7b07675d3637@dasyatidae.com> <875yrqodm4.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38066"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rtt@dasyatidae.com, emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 15 14:38:23 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mxUUB-0009ix-4l for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Dec 2021 14:38:23 +0100 Original-Received: from localhost ([::1]:53112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxUU9-0003NF-TM for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Dec 2021 08:38:21 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58114) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxU3A-0004fh-27 for emacs-devel@gnu.org; Wed, 15 Dec 2021 08:10:28 -0500 Original-Received: from [2001:470:142:3::e] (port=47958 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxU39-0007QA-I3; Wed, 15 Dec 2021 08:10:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=FyeQ4Hmrr9+orhdpm6a/S86BifRAWPegDFM7wlp+F/g=; b=GyRveld/vzFf 9OmVbHV1jy+8Zn457d39lGAkEBbp9TP9ZEFmLS9a/heLPlDXde6fOQDK/VvnQ+WZC4gpVGnRjjTud yOs8O6EYZ9SoUPI5VcHYPieTKT2QIxzMOkTV8WtQ2uigSbfpL3MpKw8wltVMi65dHwxXDxvn+X4cb Kd6s42FecZYN0U8TP2NYDkVmmGYH5ulpKYK6QcQBdZMuLcx251SdzrZ7Dn67Hn6/6yIPLe5fCYHZy 0gsEssgOVnqgJsce/F4VVQ5Wc+AUfIEboyiUawb/GHFYooRb9a+VQGw7bKCucFegEm/ZGuRnNY+5G SQ8sLP8Vp5eWlr8Zq48npA==; Original-Received: from [87.69.77.57] (port=1030 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxU39-0006SY-BW; Wed, 15 Dec 2021 08:10:27 -0500 In-Reply-To: <875yrqodm4.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 15 Dec 2021 02:34:11 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:282033 Archived-At: > From: Lars Ingebrigtsen > Date: Wed, 15 Dec 2021 02:34:11 +0100 > Cc: emacs-devel@gnu.org > > Robin Tarsiger writes: > > > The difference is in crash recovery; if one instance crashes hard in the > > middle of a transaction, it's "restore the file from backup" time. > > Whether that's okay depends on your surrounding strategy, but it feels > > similar to a subset of the lockfile strategies Emacs already considers > > okay. > > It's the "restore from backup" thing that's not acceptable, which makes > MEMORY unworkable here, I think. Maybe this aspect should be left to the application level (with some reasonable default in place)? It sounds like it's a judgment call that can only be resolved with a specific application in mind.