CS4224-Claps / project

MIT License
1 stars 0 forks source link

Reduce transaction contention #31

Closed benclmnt closed 2 years ago

benclmnt commented 3 years ago

Changes:

  1. Add column families (just try to be reasonable, like separating columns that is never modified to its own column family)
  2. Add AS OF SYSTEM TIME '-30s' to read transactions to allow stale reads and hopefully improve throughput
  3. Do SPLIT AT and SCATTER to split data ranges
  4. Add retries -> write into retry_$i.txt for transactions that failed after 5 retries, and we retry those transactions after we finish running the entire experiment.

3. Set higher priority for delivery transactions as it is the most often to fail due to contention (probably because it is updating 3 tables at once 😢 ) 4. Use uuid as primary key in Orders table to more evenly spread out data (previously got TOO_OLD transaction)