Skip to content
Discussion options

You must be logged in to vote

Prefer common prefixes as modelling mechanism.
It's not uncommon to virtualize many table/collections in a single, flat keyspace(e.g. MyRocks or CockroachDB).

Every keyspace has some files on disk, and its own write buffer. It becomes pretty impossible at that number of keyspaces to maintain the journal (unless you allowed it to be huge) and keeping write buffer size sane.

So for high cardinality, and especially arbitrarily many "prefixes", using structured keys is better.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tasn
Comment options

Answer selected by tasn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested performance data modelling
2 participants