tupui / soroban-versioning

Tansu - Soroban Versioning
https://tansu.dev
Other
3 stars 2 forks source link

Uniqueness and idempotency #19

Closed tupui closed 1 month ago

tupui commented 1 month ago

Event records are unique and we should prevent double ingestion.

Evaluate:

tupui commented 1 month ago

Closed by f6e2c52f3357533032fa1564401620e92cd93916

I went with uniqueness on multi-columns to keep primary key logic simple for every DB consumer. This has an impact on write performance but we should be good for a while before having to do fancier things (e.g. partition by ledger could solve it all quite easily.)