[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: persistent data feature
From: |
Po Lu |
Subject: |
Re: persistent data feature |
Date: |
Fri, 10 Dec 2021 13:50:30 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) |
Lars Ingebrigtsen <larsi@gnus.org> writes:
> You'll get a slower and messier interface. If you're (optionally)
> storing the data in different data files, which ones has precedence?
I disagree with the messier part: that is purely an implementation
detail, and no such implementation exists yet.
But for uses such as storing a list of recently used Emoji, is a "slower
interface" really such an important downside? Especially since the list
of recently used Emoji will be stored in a ring of some arbitrary (but
small) size.
I suspect that the use-cases which require storing a large amount of
data (such as the Gnus registry) will generally opt to use sqlite3
directly, instead of going through the "sticky value" system (which
involves printing Lisp data to a string, storing it as a string in the
database, and reading it back again).
> Will all these backends have the same semantics wrt. concurrent updates
> from different Emacs instances?
We could either make that undefined behaviour (the easy way out), or
design a locking mechanism for the text-based backend. Perhaps the
existing file locking mechanism could be used for this.
> Will they offer the same introspection opportunities (like "delete all
> stored data that refer to 'foo'"?)
Sure, why not? Since SQLite does not know about Lisp objects, I don't
see what advantage it can have WRT introspecting the contents of Lisp
objects.
> I won't be adding any other backends for this.
What if someone else does? Are patches welcome?
- Re: sqlite3, (continued)
- Re: sqlite3, Stefan Monnier, 2021/12/12
- Re: sqlite3, Lars Ingebrigtsen, 2021/12/12
- Re: sqlite3, Juri Linkov, 2021/12/11
- Re: sqlite3, Lars Ingebrigtsen, 2021/12/11
- Re: sqlite3, Richard Stallman, 2021/12/11
- persistent data feature, or sqlite3 feature?, Richard Stallman, 2021/12/09
- persistent data feature, Richard Stallman, 2021/12/09
- Re: persistent data feature, Lars Ingebrigtsen, 2021/12/10
- Re: persistent data feature,
Po Lu <=
- Re: persistent data feature, Lars Ingebrigtsen, 2021/12/10
- Re: persistent data feature, Eli Zaretskii, 2021/12/10
- Re: persistent data feature, Stefan Monnier, 2021/12/10
- Re: persistent data feature, Lars Ingebrigtsen, 2021/12/10
- Re: persistent data feature, Stefan Monnier, 2021/12/10
- Re: persistent data feature, Matt Armstrong, 2021/12/10
- Re: persistent data feature, Stefan Monnier, 2021/12/10
- Re: persistent data feature, Ihor Radchenko, 2021/12/10
- Re: persistent data feature, Matt Armstrong, 2021/12/11
- Re: persistent data feature, Tassilo Horn, 2021/12/10