SQL in CockroachDB: Mapping Table Data to Key-Value Storage (2015)
cockroachlabs.com
cockroachlabs.com
Discussed at the time: https://news.ycombinator.com/item?id=10227516
They have the primary key fields serialized in the key so they need code to make a match pattern against it etc. If the value contained the entire non-primary fields in the exact same format then that same pattern code could be used to evaluate where clauses on those fields too etc.
I would anticipate it also being massively massively faster and dramatically reduce write amplification etc.
You can now explicitly specify the layout of your table data across keys via CockroachDB column familes: https://www.cockroachlabs.com/docs/stable/column-families.ht...
By default, since several years ago, all data in a table is stored in the same column family.
^ this statement is so false