Skip to content

What are the limitations of CockroachDB when it horizontally scales? #141804

Discussion options

You must be logged in to vote

Will unique constraints still apply to a horizontally scaled table?

Yes, uniqueness property will be enforced even if a table is split into multiple ranges (i.e. shards).

Will the performance of atomic transaction in a horizontally scaled table degrades?

If a transaction touches multiple ranges, regardless of whether those ranges are for the same table or not, the performance could be worse than if the transaction touched only a single range. However, this will be highly dependent on the nature of the transaction, so it's hard to provide any more specific answer.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by yuzefovich
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants