From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: Against sqlite3!!! Date: Tue, 07 Dec 2021 16:51:22 +0100 Message-ID: <87tufkwga9.fsf@gnu.org> References: <41E1B5BD-879C-430C-8BA3-3A5354AF2928@mit.edu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5381"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.7.5; emacs 29.0.50 Cc: emacs-devel@gnu.org, Stefan Monnier , Zhu Zihao To: Qiantan Hong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 07 17:08:03 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 1mud0a-00013G-2X for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Dec 2021 17:08:00 +0100 Original-Received: from localhost ([::1]:54226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mud0Y-0000VH-6H for ged-emacs-devel@m.gmane-mx.org; Tue, 07 Dec 2021 11:07:58 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54546) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muczK-0007vM-Ll for emacs-devel@gnu.org; Tue, 07 Dec 2021 11:06:43 -0500 Original-Received: from [2001:470:142:3::e] (port=46882 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 1muczK-0002yO-7R; Tue, 07 Dec 2021 11:06:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-reply-to:Date:Subject:To:From: References; bh=iC/cmwCaim5Mz4G3bDh98V9MNR1YIERLNSlfMxz4lkM=; b=abDauUVWPl1qeR 2tNX1lhtnXVdj1QKlMDCmS9maWTILNF5hI70zejAxwCxCnCAEP2d7QWP2xWAQap+lGb1gUyOdfEBA cQJr+Az8oZtLGOxkwaOmbTUqHTDqCS6p0/D2AgBd1xJLJDM7NiAYyXiwudGzfQNnMb61l1XGUveOv BNIsuEwpvonRnrF8jSRgTq/DRsQS9tSiT+upuzbjLYsPrnn1+9PJzOJUUf+Zm1r2SENF6j4Qu32NV h23+58SxIndBW/LWYBUMjbGIfu2ooMubuYFNTmoXjG65iAlnxK646RimQOs77+XLPRT/7jSKkWnv1 VSZNCutj08mwcoXvNMqQ==; Original-Received: from auth1-smtp.messagingengine.com ([66.111.4.227]:44791) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1muczK-0000tr-9g; Tue, 07 Dec 2021 11:06:42 -0500 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id 541B827C005A; Tue, 7 Dec 2021 11:06:41 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Tue, 07 Dec 2021 11:06:41 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrjeehgdekiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpehffgfhvffuffgjkfggtgesthdtredttdertdenucfhrhhomhepvfgrshhsihhl ohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucggtffrrghtthgvrhhnpeevve eikeetkeeviefgfeffiedvteeguddvffeuueduveegtddthedvhfeuveffhfenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhorhhnodhmvg hsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieejfeekjeekgedqieefhedvleek qdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 7 Dec 2021 11:06:40 -0500 (EST) In-reply-to: <41E1B5BD-879C-430C-8BA3-3A5354AF2928@mit.edu> 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:281261 Archived-At: Hi Hong, I'm not very knowledgable with cl-* stuff but doesn't your implementation load all key-value pairs at once? That would be quite a disadvantage compared to a DB approach where I'd naturally expect that only the value I'm asking for is loaded. Also, how would it ensure consistency when I have 2 parallel emacs sessions (like one for mail/irc and one for programming/editing) where session 1 modifies the value of key A and the other of key B? It looks like the values of the kv-store that gets saved later will win. In case that's the emacs session which has modified B, it'll revert A to the state before the other session modified it, no? If that were true, I'd say your resist!.el is a non-starter in the current form. It should at least load only values explicitly asked for and only persist/override actually changed values. A trivial solution could use one file per key. Not sure how sensible that is. Bye, Tassilo