Skip to content

Instantly share code, notes, and snippets.

@aclamk
Created November 29, 2018 14:33
Show Gist options
  • Save aclamk/fb0b7e0c71091e6003023996c4cb5011 to your computer and use it in GitHub Desktop.
Save aclamk/fb0b7e0c71091e6003023996c4cb5011 to your computer and use it in GitHub Desktop.
CF
prefix_cf:
1) there exists default table for k-v
2) there exist additional tables with fixed prefixes
3) for additional table name is same as prefix
4) writes and reads do refer additional table, if prefix matches
5) prefixed iterator accesses either default or prefixed table
6) wholespace iterator accesses default_cf
7*) need uniform iterator for both prefixed and default
multi_cf:
1) there exists default table for k-v
2*) there exist additional tables for k-v
3) additional tables are allowed to contain multitude of prefixes
4) there is no implicit redirection from default to additional table
5*) iterator must specify both prefix and table
6*) wholespace iterator must specify table
prefix_cf && multi_cf:
1) there exists default table for k-v
2) there exist additional tables with fixed prefixes
3*) single letter table name indicates fixed prefix
4) fixed prefix tables are attached to default table
5) operations to default table are redirected to fixed prefix tables
6) prefixed iterator accesses either default or prefixed table
7) wholespace iterator accesses default_cf
8*) need uniform iterator for both prefixed and default
9*) there exist additional tables for k-v
10*) additional tables supported only by rocksdb
11*) additional tables must name with 2 or more chars
12) additional tables are not referenced indirectly from default table
13*) additional tables can contain any prefixes
14*) iterator must specify both prefix and may specify table
15*) wholespace iterator may specify table
16*) utility for sharded prefix:
- mapping key->table
- utility iterator spanning multiple tables
- balancing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment