emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Against sqlite3!!!


From: Qiantan Hong
Subject: Re: Against sqlite3!!!
Date: Tue, 7 Dec 2021 19:13:23 +0000

> You can do same as sqlite does: just lock entire file (db). Sqlite locks 
> entire
> db while writes are performed. It can be configured to allow concurrent reads
> but only if there are no ongoing writes.
Indeed, that’s a straightforward solution. Not sure if
the Emacs lock file mechanism is fast enough to run for
every write, though (Emacs doesn’t seem to expose
UNIX flock/fcntl stuff).

There’s also a question of should we try to make write from an Emacs
visible for read from another Emacs.
AFAIC it doesn’t make much sense if we just want to persistent
backing storage. Should we also consider the (ab)use
as an IPC channel?

Best,
Qiantan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]