Does the same partition key in different cassandra tables add up to cell theoretical limit?

前端 未结 1 1697
-上瘾入骨i
-上瘾入骨i 2021-01-19 01:40

It is known that a Cassandra partition has a theoretical limit of 2 billion cells. But how does that work in a situation like this one below:

create table ta         


        
相关标签:
1条回答
  • 2021-01-19 02:10

    Different tables have different partitions. This makes the structure of any particular partition homogenous (it will always follow the proscribed schema of a single table) which allows for optimizations.

    If you look at the storage engine under the hood you'll see that every table even has it's own directory structure making it clear that a partition from one table will never interact with the partition of another. (see /var/lib/cassandra/)

    0 讨论(0)
提交回复
热议问题