pg/cmd/pg-lockless-fifo-demo
Bel LaPointe ccfe60f0ac renmae because im too lazy to finish 2025-12-11 11:08:54 -07:00
..
README.md lockless-fifo accepts sqlite 2025-12-11 10:00:25 -07:00
main.go renmae because im too lazy to finish 2025-12-11 11:08:54 -07:00

README.md

https://trychroma.com/engineering/wal3

(generally with S3 but this is fine)

  1. GET (current_node, cksum) FROM head_pointer
  2. INSERT node (previous_node) VALUES (head_pointer) RETURNING node.id
  3. UPDATE head_pointer (current_node, cksum) VALUES (node.id, blockchain) IF head_pointer.cksum=cksum