https://github.com/coriolinus/redb-transaction-experiment
Within the context of a transaction, do reads see up-to-date data?
https://github.com/coriolinus/redb-transaction-experiment
Last synced: 10 months ago
JSON representation
Within the context of a transaction, do reads see up-to-date data?
- Host: GitHub
- URL: https://github.com/coriolinus/redb-transaction-experiment
- Owner: coriolinus
- Created: 2025-08-12T08:03:35.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-08-12T08:06:24.000Z (12 months ago)
- Last Synced: 2025-08-12T10:12:22.045Z (12 months ago)
- Language: Rust
- Size: 3.91 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `redb` Transaction Experiment
This program attempts to answer the question: within the context of a transaction, do reads see up-to-date data?
```
pre-commit write txn sees updated data, hooray!
concurrent read txn correctly sees initial value
post-commit existing read txn INCORRECTLY sees initial value
post-commit new read txn correctly sees updated value
```
Short answer: yes, but we need to keep read transactions short/local in order to see updated data.