Expand description
Database column descriptors
Templates classifying column families along three axes:
- Write pattern:
RANDOM(writes scatter across the keyspace) vsSEQUENTIAL(writes append to the end). Drives compaction priority (OldestSmallestSeqFirstvsOldestLargestSeqFirst) and write-buffer sizing. - Dataset size: plain (level compaction, MB-scale files) vs
_SMALL(universal compaction, KB-scale files and blocks). - Retention: plain (unbounded) vs
_CACHE(FIFO eviction bounded bylimit_sizeandttl).
Each CF in maps::MAPS picks one template and overrides individual
knobs as needed.
Structsยง
- Descriptor ๐
- Column Descriptor
Enumsยง
- Cache
Disp ๐ - Cache Disposition
Staticsยง
- BASE ๐
- Base descriptor supplying common defaults to all derived descriptors.
- DROPPED ๐
- Tombstone descriptor for columns which have been or will be deleted. Descriptors of this kind are explicitly set to delete data. Care should be taken when using this as it inhibits downgrading and other migrations.
- IGNORED ๐
- Placeholder descriptor for existing columns which have no description. Automatically generated on db open; should not appear in any schema.
- RANDOM ๐
- Descriptor for large datasets where writes scatter across the keyspace.
- RANDOM_
CACHE ๐ - Descriptor for large persistent caches where writes scatter across the
keyspace. Oldest entries are evicted by FIFO compaction once
limit_sizeis reached. - RANDOM_
SMALL ๐ - Descriptor for small datasets where writes scatter across the keyspace.
- RANDOM_
SMALL_ ๐CACHE - Descriptor for small persistent caches where writes scatter across the
keyspace. Oldest entries are evicted by FIFO compaction once
limit_sizeis reached. - SEQUENTIAL ๐
- Descriptor for large datasets where writes append to the end of the keyspace.
- SEQUENTIAL_
CACHE ๐ - Descriptor for large persistent ring/queue caches where writes append to
the end of the keyspace. Lowest keys are evicted off the front once
limit_sizeis reached. - SEQUENTIAL_
SMALL ๐ - Descriptor for small datasets where writes append to the end of the keyspace.
- SEQUENTIAL_
SMALL_ ๐CACHE - Descriptor for small persistent ring/queue caches where writes append to
the end of the keyspace. Lowest keys are evicted off the front once
limit_sizeis reached.