design: Partially tiered datastructures
Author: dranikpgCreated Jan 26, 2026Updated Sep 30, 2026
Labelsstale
Assumptions:
- HINCRBY[FLOAT] are the only read-write commands. As they work on small values (integers/floats), we can assume that all commands are either: exclusively read, exclusively write or delete.
Definition. Very similar to tiered values, somewhat simpler:
- A datastructure can have multiple nodes that are offloadable and are identified by a unique uint64_t
- A node can be:
- In memory with optionally a pending disk write
- On disk with optionally a series of pending disk reads
- The mechanics of reading/writing/deleting are the same as with tiered values
- Uploading/offloading is now also handled by the decoder/datastucture
Identifier problems:
- Reads can finish after a value has been aready overwritten in memory, so uploading is no longer possible -> Reusable identifiers (including allocation addresses) can only be used with some sort of versioning. The versioning can be performed by OpManager by marking read-chains as stale
Source: dragonflydb/dragonfly