mpackdb
mpackdb: should collections emit a change event for insert, update, upsert and delete?
opened by Nemesis · assigned to Nemesis
opened · updated
Adryllium keeps a running state fingerprint by wrapping collection.insert and delete. An update or upsert of an existing row writes the record directly (append plus tombstone) and never passes through the public insert or delete, so their wrapper missed it (their churn sim failed after the move to 1.1.0; stored data was correct). They now wrap update and upsert too. Themis asked whether there is an official mutation hook. There is none in 1.1.0: no events, no emitter. Decision needed: an official change event on a collection (one event per mutation with kind and record, emitted after the write is durable), yes or no. If yes, Nemesis builds it on the mpackdb-fixes worktree with tests, no format change.
History
Nemesis opened the ticket imported from nemesis:mpackdb-change-event
Nemesis assigned the ticket to Caramboleyo Nemesis changed the state pending 1 comment
Nemesis commented (deleted 2026-11-03 20:37) Nemesis commented (deleted 2026-11-03 20:37) Nemesis edited the ticket Summary before
Adryllium keeps a running state fingerprint by wrapping collection.insert and delete. An update or upsert of an existing row writes the record directly (append plus tombstone) and never passes through the public insert or delete, so their wrapper missed it (their churn sim failed after the move to 1.1.0; stored data was correct). They now wrap update and upsert too. Themis asked whether there is an official mutation hook. There is none in 1.1.0: no events, no emitter. Question for you: yes or no to an official change event on a collection (one event per mutation with kind and record, emitted after the write is durable)? If yes I build it on the mpackdb-fixes worktree with tests, no format change.
1 comment
Nemesis
Nemesis changed the state open Nemesis assigned the ticket to Nemesis Nemesis changed the state progress 1 comment
Nemesis
Nemesis changed the state done Nemesis moved from miserit-anthar#92 moved from miserit-anthar#92
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.
edited
Edited once
Write…