[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sqlite3
From: |
Stefan Monnier |
Subject: |
Re: sqlite3 |
Date: |
Wed, 15 Dec 2021 11:36:19 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>> > but I didn't quite see how that would work with circular and
>> > self-referential lists.)
>>
>> AFAIK the general way to avoid these issues is to store/log not the
>> "data-diff" but the higher-level operation that caused this diff.
>> E.g. log something like "add X to tree" instead of recording which nodes
>> in the tree were modified in which way. This way, the presence or
>> absence of cycles in the representation of the tree doesn't come into
>> the picture at all.
>
> Looks like Qiantan’s implementation of incremental log-like store.
Indeed. BTW, there's another approach which, instead of looking at the
higher-level API looks at the lower level steps (like "change this slot
to that value" where a value can be a reference), so adding an element
to a doubly linked list would record a set of 4 slot changes.
Stefan
- Re: sqlite3, (continued)
- EQ-ness, Richard Stallman, 2021/12/16
- RE: [External] : EQ-ness, Drew Adams, 2021/12/17
- Re: [External] : EQ-ness, Richard Stallman, 2021/12/18
- RE: [External] : EQ-ness, Drew Adams, 2021/12/19
- Re: [External] : EQ-ness, Richard Stallman, 2021/12/20
- Re: sqlite3, Alexandre Garreau, 2021/12/14
- Re: sqlite3, Stefan Monnier, 2021/12/15
- Re: sqlite3, Alexandre Garreau, 2021/12/15
- Re: sqlite3,
Stefan Monnier <=
- Re: sqlite3, Qiantan Hong, 2021/12/15
Re: sqlite3, Dmitry Gutov, 2021/12/14
Re: sqlite3, Richard Stallman, 2021/12/15
Re: sqlite3, Po Lu, 2021/12/15
Re: sqlite3, LdBeth, 2021/12/16
Re: sqlite3, Richard Stallman, 2021/12/16